Declarative 1 « Transaction « Spring Q&A





1. Spring - how to gather informations during rollbacks in declarative transaction management    stackoverflow.com

Could please anybody tell me If it is safe and recommended to catch SQL and other exceptions within @Transactional methods ? When programmatic transaction management is used, I can simply catch ...

2. example of spring declarative roolback-for?    stackoverflow.com

want declarative transactional management example in spring aop........ Actually Here

<aop:config>
    <aop:advisor advice-ref="addAdvice" pointcut="execution(* com.DAO.*.*(..))"/>
</aop:config>
<tx:advice id="addAdvice" transaction-manager="transactionManager">
 ...

3. spring, hibernate and declarative transaction implementation: there is no active transaction    stackoverflow.com

i try to make declarative transaction work. This is my spring.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:tx="http://www.springframework.org/schema/tx"
    ...

4. Configure declarative transactions in hibernate + spring project    stackoverflow.com

I am new to hibernate.could any one please help me in configuring the transaction to the database operations in hibernate my requirement is not use the manual commands, tnx.begin,commit in the code ...

5. Spring Declarative Transcation and AOP    stackoverflow.com

we have decided to use spring for declaratively transcation management in our application.We are using hibernate (Independently not spring template approach) for the persistance layer but want to use spring's power ...

6. Spring declarative transaction management : multiple pointcuts    stackoverflow.com

I know its almost weekend but still worth trying :) I need to use multiple transaction managers due to which it makes sense for me to go with declarative transactions management instead ...

7. Transaction doesn't seem to work in Spring Declarative Transaction Mode    stackoverflow.com

I am trying to implement declarative transaction management in a Spring+Struts+Hibernate setup. This is a part of my applicationcontext.xml

<property>
  <props>
    <prop key="foodoo*">PROPAGATION_REQUIRED,-FooException</prop>
  </props>
</property>
I have defined two public ...

8. Handling Hibernate Exceptions in Spring Declarative Transaction Management    stackoverflow.com

I have used PROPAGATION_REQUIRED declarative transaction management approach for my Spring+Hibernate+Struts application. I can catch the StaleObjectException(intended) in the place where the service call is made (where the transaction starts). There ...

9. Declarative Transaction Management in Spring behaving unpredictably    stackoverflow.com

I have a Spring+Hibernate application with declarative transaction management. I have a service (FooService) which has 2 public methods MethodA and MethodB. The client will call the MethodA which in turn will ...





10. Declarative AOP TransactionProxyFactoryBean Error in 1.1    forum.springsource.org

Declarative AOP TransactionProxyFactoryBean Error in 1.1 I have the follwing code in my ApplicationContext-Hibernate.xml file: It works in Spring 1.02 but gives an initialization error in version 1.1. SEVERE: Context initialization ...

11. After successful transaction with declarative transaction management    forum.springsource.org

After successful transaction with declarative transaction management Hello Community, I wanted to ask for a best-practice / recommendation how you handle code that should only be invoked after a successful transaction ...

12. Declarative transaction with BeanNameAutoProxyCreator    forum.springsource.org

Declarative transaction with BeanNameAutoProxyCreator I have some trouble with BeanNameAutoProxyCreator. I have a lot of class with the same transactional methods. So i use BeanNameAutoProxyCreator to wrap them in a completely ...

13. Combine manual and declarative transaction management    forum.springsource.org

Combine manual and declarative transaction management Hello, I am using the Apache Click framework to build a web application. I want to implement two-phase transaction support in the following manner: One ...

14. Declarative Transaction support    forum.springsource.org

Declarative Transaction support Hello, I've been writing a Struts web application that uses Spring declarative transaction support and OJB as the ORM tool. All of my services in my application are ...

15. Declarative transactions using Tiger annotations    forum.springsource.org

Declarative transactions using Tiger annotations Hello All! :idea: I just want to share the code, that allow using JDK 5 annotations for declarative transactions. Transacted.java: Code: package spring.transaction; import java.lang.annotation.*; import ...

16. Spring Declarative Transaction    forum.springsource.org

Spring Declarative Transaction Hello, We are facing problem related to transaction management. We are encountering the below Error in Websphere ffdc log. java.sql.SQLException: DSRA9010E: 'setReadOnly' is not supported on the WebSphere ...





17. change transactional definition at run time in declarative Transaction Management    forum.springsource.org

We are using Spring declarative transaction management. We need to intercept some how and change the transactional behaviour at run time based on user permission and if he has no permission ...

18. Declarative Transactions to Rollback on Any Exception    forum.springsource.org

Patrick, Did you try to simply specify "-Exception"? You have to specify it multiple times, but at least it is explicit what you are doing. Or are you looking for a ...

19. Declarative transaction will not work when .... ?    forum.springsource.org

Declarative transaction will not work when .... ? Hi, I have declared ClassA.methodX() as PROGATAION_REQUIRED. The transaction mechaism works fine, when other object invokes ClassA.methodX() directly. If methodX() throws Exception, all ...

20. Declarative Transaction Question    forum.springsource.org

Declarative Transaction Question I have a service object configured using TransactionProxyFactoryBean (with DataSourceTransactionManager) and all the methods are set to PROPAGATION_REQUIRED. Can anyone help me understand this behavior that I'm seeing? ...

21. Can't get declarative transactions to work :(    forum.springsource.org

Jan 24th, 2005, 08:25 PM #1 kuato View Profile View Forum Posts Private Message Visit Homepage Junior Member Join Date Nov 2004 Posts 11 Can't get declarative transactions to work :( ...

22. Spring Declarative Transaction Newbie    forum.springsource.org

I am currently in the process of changing my current MDB/Hibernate system to use MDB/Spring/Hibernate. I am following patterns read in Matt Raible's Spring Live book ( HibernateSupportDaos under a Manager ...

23. Declarative Transaction Management & Exception Handling    forum.springsource.org

Declarative Transaction Management & Exception Handling I would like to discuss an issue I find it could be relevant to the way applications are designed, in terms of layers. It's already ...

24. Declarative transaction question    forum.springsource.org

Declarative transaction question Hi Alls, I'm using Hibernate 2.1.8 and Spring 1.1.5 In Spring config i have such code: Code: ...

25. Programmatically rollback a declarative transaction    forum.springsource.org

Programmatically rollback a declarative transaction I want to use declarative transactions AND I want to programatically issue a rollback. Yes, I want my cake and eat it too! Here's my reasoning. ...

26. Declarative Transaction only works on top level method    forum.springsource.org

Declarative Transaction only works on top level method When trying to declare a transaction around a method,the transaction seems only persisted when I specify the the first method called in the ...

27. about spring 's *Declarative transaction management    forum.springsource.org

28. Declarative transaction management    forum.springsource.org

Declarative transaction management Hi all, I'm using Spring 1.1.5 with Hibernate 2.1.8. I have a business service class that does two db calls and sends a mail. I have declared a ...

29. Pb with Rollback declarative transaction with Hibernate    forum.springsource.org

Jun 6th, 2005, 07:22 AM #1 djudju View Profile View Forum Posts Private Message Junior Member Join Date Jun 2005 Posts 1 Pb with Rollback declarative transaction with Hibernate Hi there, ...

30. Mixing programmatic and declarative transactions    forum.springsource.org

I have a "traditional" declarative transaction setup with Hibernate that works great. However, I was wondering if it would be possible to set up a second separate transaction in the same ...

31. Problems in rollback when using declarative transactions    forum.springsource.org

Jul 6th, 2005, 01:58 PM #1 cmsudan View Profile View Forum Posts Private Message Junior Member Join Date Jul 2005 Posts 2 Problems in rollback when using declarative transactions I am ...

32. Declarative transaction syntax error?    forum.springsource.org

Declarative transaction syntax error? I'm having a hard time getting this to work:

33. Declarative Transaction using Hibernate 3 not working for me    forum.springsource.org

Declarative Transaction using Hibernate 3 not working for me Hello. I'm currently using Hibernate 3 transactions and want to switch to Spring Transactions but my first test isn't working. Here are ...

34. Declarative transaction management in Spring    forum.springsource.org

Declarative transaction management in Spring Hi friends!! I'm trying to use the declarative transaction management with Hibernate in Spring. But i can't obtain a rollback at my wrong actions on BBDD. ...

35. Declarative transaction management in Spring    forum.springsource.org

Aug 31st, 2005, 07:16 AM #1 Jarva View Profile View Forum Posts Private Message Junior Member Join Date Apr 2005 Posts 20 Declarative transaction management in Spring Hi friends!! I'm trying ...

36. Spring's Declarative Transaction - is not rolling back    forum.springsource.org

Sep 12th, 2005, 04:44 AM #1 vaibhav.gandhi View Profile View Forum Posts Private Message Junior Member Join Date Mar 2005 Posts 9 Spring's Declarative Transaction - is not rolling back Hi ...

37. Hibernate3 Declarative Transaction management w/o hibernate template    forum.springsource.org

Yes. JTA TM should be used when you have multiple resources or distributed transactions. You can use the LocalTM without a problem. HibernateTemplate is just a utility class - you can ...

38. Declarative transactions don't work with annotations    forum.springsource.org

Declarative transactions don't work with annotations I have configured declarative transactions to work with annotations. I have java 1.5 and spring 1.2.6. applicationContext.xml looks like this: Code: ... ...

39. How to detect Rollback in declarative transaction management    forum.springsource.org

How to detect Rollback in declarative transaction management Hi I am new to springs. I am able to get the declarative transaction management working. But I need to know if the ...

40. Architectural discussion when using declarative transactions    forum.springsource.org

Architectural discussion when using declarative transactions Hi, I have an application that uses Spring declarative transaction support. My app has three layers: 1) Presentation layer --> JSF 2) Business layer 3) ...

41. Declarative transaction management does not work    forum.springsource.org

Declarative transaction management does not work I am not able to execute transaction that was declared via "application context" xml file. In that file I have the following: ...

42. declarative transaction w/ readOnly does not work    forum.springsource.org

Mar 19th, 2006, 04:54 PM #1 len53 View Profile View Forum Posts Private Message Member Join Date Mar 2006 Posts 81 declarative transaction w/ readOnly does not work I declared transaction ...

43. Propagation and Declarative Transaction Management    forum.springsource.org

My business service is using declarative transaction management for all its public methods. My business layer accesses my DAO's that extend HibernateDaoSupport. Within this business layer I instantiate and call another ...

44. declarative jta transaction example    forum.springsource.org

declarative jta transaction example I tried to define bean that will access database using Spring's JDBC template and will be wired to stateless session EJB and have methods to be executed ...

45. declarative jta transaction does not work    forum.springsource.org

declarative jta transaction does not work I have tried to setup the declarative jta transaction. I have the stateless session EJB having methods configured as transaction_required and the logic to access ...

46. Declarative Transaction in 2.0-m3    forum.springsource.org

Hi, All. I would like to ask for your help about the following issue. I use spring v.2.0-m3 and hibernate 3.1.rc2. I use the following ransaction attributes in the TransactionProxyFactoryBean settings: ...

47. declarative transactions config    forum.springsource.org

Apr 11th, 2006, 09:11 AM #1 memy View Profile View Forum Posts Junior Member Join Date Apr 2006 Posts 1 declarative transactions config I'm trying to setup declatative transaction management in ...

48. Question about declarative transaction management    forum.springsource.org

Question about declarative transaction management Hello, I am looking at declarative transaction management and I am a bit confused : what is the bean to use to expose services? The proxy ...

49. declarative transaction problem    forum.springsource.org

May 20th, 2006, 11:05 AM #1 len53 View Profile View Forum Posts Private Message Member Join Date Mar 2006 Posts 81 declarative transaction problem I need to have 2 methods (which ...

50. Issue with declarative transaction    forum.springsource.org

Issue with declarative transaction I have a transactional method, but I get the following debug statement whenever that methos is called: 2006-05-21 12:15:02,277 [HttpRequestHandler-17311779] DEBUG org.springframework.transaction.interceptor.Transa ctionIntercepto r.createTransactionIfNecessary - Don't need ...

51. Cannot figure out declarative transactions    forum.springsource.org

Cannot figure out declarative transactions I am trying (and failing) to introduce transaction management into working application. In it I have several classes similar to following: Company - business layer interface ...

52. How to achieve Declarative Transaction Management through Action Class?    forum.springsource.org

How to achieve Declarative Transaction Management through Action Class? Hi, I have the following configuration being used. Tomcat 5.0.30 Hibernate 3.0.5 Spring 1.2.7 MYSQL 4.1.18 c3p0-0.9.1-pre6 I have the following configuration ...

53. Oracle - Declarative Transaction Mgmt    forum.springsource.org

Hi All, If transactions properties are specified for method create() HelloImpl class, will the transaction rollback only when the database / associated RDBMS throws an error or does the transaction rollsback ...

54. Declarative Transactions w/ JbpmTemplate    forum.springsource.org

Jul 18th, 2006, 10:58 AM #1 bdruth View Profile View Forum Posts Private Message Junior Member Join Date May 2006 Posts 15 Declarative Transactions w/ JbpmTemplate I am a relative newbie ...

55. Spring Hibernate declarative transaction problem    forum.springsource.org

HTML Code: 17:17:11,546 DEBUG TransactionInterceptor:280 - Invoking rollback for transaction on com.xjets.bpel.domain.business.IOrderService.processCustomerOrder due to throwable [com.xjets.bpel.domain.business.exception.OrderProcessingException] 17:17:11,546 DEBUG HibernateTransactionManager:669 - Triggering beforeCompletion synchronization 17:17:11,546 DEBUG TransactionSynchronizationManager:185 - Removed value [org.springframework.orm.hibernate3.SessionHolder@132ae7] for ...

56. Declarative transactions, Hibernate and rollback    forum.springsource.org

Sep 20th, 2006, 11:27 AM #1 Jonathan Alvarsson View Profile View Forum Posts Private Message Member Join Date Sep 2006 Posts 53 Declarative transactions, Hibernate and rollback Hi I am trying ...

57. Declarative transactions Hibernate .Rollback not working    forum.springsource.org

Declarative transactions Hibernate .Rollback not working I am using Declarative transactions to handle transaction in my application ,but it seems its not working .I am using Hibernate for data persistance. i ...

58. declarative transactions not working    forum.springsource.org

declarative transactions not working i have setup declarative transactions for a small sample app, however, when i intentionally throw a null pointer exception so that the transaction will rollback it does ...

59. methods not being wrapped in declarative transactions    forum.springsource.org

methods not being wrapped in declarative transactions Putting together an example declarative trans app. It seems that my methods are not being wrapped by springs declarative transactions. I look at the ...

60. Initiating declarative demarcated transaction    forum.springsource.org

Have a bean with methodA (calling methods 1, 2 and 3) and a a methodB (calling methods 2 and 4) and declare methodA and methodB to be transactional. Regards, Andreas

61. Declarative Transaction Management with Hibernate    forum.springsource.org

Code: IUserManager usermng = (IUserManager)beanFactory.getBean("userManager"); for (int i=0; i<30; i++) { User user = new User(); user.setName("newuser" + (i+1)); user.setPassword("pw"); try { usermng.save(user); } catch (RuntimeException ex) { System.out.println("TEST FAIL!!!"); continue; ...

62. problems with declarative transactions    forum.springsource.org

problems with declarative transactions Hi, I am facing a problem with the hibernate transaction. I cannot manage to have my pojo saved in the DB and also the rollback doesn't work ...

63. Spring 2 declarative tx management in local transactions.    forum.springsource.org

Hi all, Local/non JTA transaction means that it either commits/rollbacks aganist a single resource manager and has no tx manager involved. So I assume that tx completion is taken care by ...

64. Declarative Transactions question    forum.springsource.org

Declarative Transactions question Hi, I'm trying to use declarative transaction but it doesnot work. My question is about the expression. Do i have to make it on the service interface or ...

65. Newbie - Declarative Transaction question    forum.springsource.org

Newbie - Declarative Transaction question Hello - We are implementing a Spring/Hibernate solution. In the service layer I want to be able to start the transaction, open the session, do some ...

66. Spring 2.0 and AOP Declarative Transactions    forum.springsource.org

Spring 2.0 and AOP Declarative Transactions Hi, I have the problem that I get an UnexpectedRollbackException when setting setRollbackOnly() which AFIK is a programatical rollback. I guess I have exactly the ...

67. Declarative Transaction Management Problem.    forum.springsource.org

But this was not happening... I really couldn't understand what was wrong. As I was declaring the method has transactional with Propogation Behavior as PROPOGATION_REQUIRED .

68. AGAIN Spring 2.0, AOP Declarative Transactions and Rollback    forum.springsource.org

AGAIN Spring 2.0, AOP Declarative Transactions and Rollback Hi, Following up my post http://forum.springframework.org/showthread.php?t=35894 I'd like to pick this topic up again. Situation: --------- I'm using declarative Transactions with a simple ...

69. Detecting faulty declarative transactions?    forum.springsource.org

Detecting faulty declarative transactions? Hi, We're using iBATIS and Jakarta Commons Attributes-based Transaction annotations (since we're still on Java 1.4) and I've noticed recently that if we make a mistake in ...

70. Best Practice for Declarative Transactions?    forum.springsource.org

Best Practice for Declarative Transactions? I'm starting a new web app with Spring 2.0 using Spring MVC and Hibernate 3.1. I'd like to use declarative transactions and thought the best way ...

71. Problem with declarative transactions using Spring and Hibernate    forum.springsource.org

May 27th, 2007, 04:14 AM #1 351917 View Profile View Forum Posts Private Message Junior Member Join Date May 2007 Posts 2 Problem with declarative transactions using Spring and Hibernate I'm ...

72. Declarative Tx mgmt rollback question    forum.springsource.org

I thought transactions will, by default, only rollback for RuntimeExceptions. I have a situation where a method participating in a transacitons throws a java.lang.StackOverflowError which is inherited by Throwable. And magically ...

73. Declarative transaction management with Hibernate    forum.springsource.org

Declarative transaction management with Hibernate I'm using the new spring declarative transaction management with hibernate3 in my application. I've a little doubt about the right transaction manager to choose. For the ...

74. Declarative Transaction Woes    forum.springsource.org

Jul 2nd, 2007, 11:38 AM #1 devilfalcon View Profile View Forum Posts Private Message Junior Member Join Date Jul 2007 Posts 2 Declarative Transaction Woes I'm trying to set up an ...

75. Declarative transactions - checking isRollbackOnly in test cases    forum.springsource.org

Declarative transactions - checking isRollbackOnly in test cases Hello! I'm new to spring and loving it so far! I'm using JTA by the way. My problem is in my test cases. ...

76. Java Transaction Design Strategies - Spring Declarative Transactions    forum.springsource.org

Java Transaction Design Strategies - Spring Declarative Transactions As recommanded in Spring Reference Documentation (Chapter 9 - Transaction Management, 9.10. Further resources), I've recently read the excellent book 'Java Transaction Design ...

77. AOP Advice Ordering & Declarative Transaction    forum.springsource.org

AOP Advice Ordering & Declarative Transaction Hi, I am using Spring/Hibernate with declarative transaction:

78. The new Declarative JTA transaction Manager support: Spring 2.1.M4 with WAS 6.1.0.11    forum.springsource.org

The new Declarative JTA transaction Manager support: Spring 2.1.M4 with WAS 6.1.0.11 This is my first time trying to get the JTA transaction manager configured. Trying to use the new Spring ...

79. declarative transaction not started    forum.springsource.org

declarative transaction not started Hello everybody I've been trying to use springs declarative transaction support for hibernate but unfortunatly i always get: "org.hibernate.HibernateException: createCriteria is not valid without active transaction" So, ...

80. strange bahaviour of declarative transactions    forum.springsource.org

strange bahaviour of declarative transactions Hi everybody. I have met interesting connection between code behaviour and transaction configuration for that code. That code is some *** *** ***** actually, I'm not ...

81. Basic Declarative Transaction Question    forum.springsource.org

Basic Declarative Transaction Question Hello, I am trying to implement basic declarative transaction management in a simple web application. I am using MySQL with Spring-managed beans, and I am testing in ...

82. Declarative Transactions using Multiple DBs    forum.springsource.org

Declarative Transactions using Multiple DBs I want to use Declarative Transactions for my Service Class The following is my Declarative Configuration Code: PROPAGATION_REQUIRES_NEW

83. Declarative Rollback    forum.springsource.org

public class MyService { @Transactional(rollbackFor=Exception.class) public MyRsp myServiceMethod() { MyRsp rsp = new MyRsp(); try { ...; } catch(Exception e) { mRsp.setError(true); // No rethrow of Exception e. } return(myRsp); } ...

84. Declarative transactions & annotations    forum.springsource.org

Not sure what you mean by minimum specific entry but declarative transactions in Spring usually look somthing like: Code:

85. Debugging Declarative Transactions    forum.springsource.org

Debugging Declarative Transactions Hi, I am maintaining an application that has been configured to use declarative transactions, with the following basic elements in the context file: Code: Hibernate ...

86. Declarative transactions - cd...    forum.springsource.org

Declarative transactions - cd... Hi, Based on your previous suggestions I made some experiences, so today I have only one question. Let me add in the first step an entry of ...

87. Declarative Transaction Mgmt- Unable to rollback    forum.springsource.org

Declarative Transaction Mgmt- Unable to rollback Hi All, We need to rollback a transaction when we hit upon Record Already Exists Exception. Our application needs to insert about 1000 records, one ...

88. Howto use declarative transaction management with @Service-annoted classes    forum.springsource.org

Hello. I am using classic Spring transaction management with TransactionProxyFactoryBean: Code: With Spring 2.5 source-level stereotypes like ...

89. Declarative transactions    forum.springsource.org

Hi guys, i'm very new to spring only been using it for a couple of weeks. Now i'm looking for a good way to implement declarative transactions with hibernate in my ...

90. JPA + Spring + declarative/manual transactions    forum.springsource.org

JPA + Spring + declarative/manual transactions Hi. I'm using TopLink together with JPA and spring 2.5.1 in a Tomcat environment. Also I have configured declarative transactions via org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean and almost ...

91. declarative JTA and hibernate: transactions are not commited    forum.springsource.org

declarative JTA and hibernate: transactions are not commited Hello, I use spring 2.5, hibernate 3.2.5.ga and atomikos transactions to enable XA transactions. Using transactions programmatic it works fine. Now I tried ...

92. Problem with declarative transaction management    forum.springsource.org

Problem with declarative transaction management I am facing some problem with TransactionProxyFactoryBean.When i am doing the transaction rollback also it is saving...... My code is: applicationContext.xml ...

93. AOP Declarative Transaction Management    forum.springsource.org

AOP Declarative Transaction Management Hello All, We have currently managed to used AOP based Declarative Transaction management for all our Service method calls. Please find a sample of the Configuration File ...

94. Using declarative transactions: BeanCreationException    forum.springsource.org

Using declarative transactions: BeanCreationException I'm using the latest Spring JAR, JVM 1.4, Sun AppServer. I wrote a declarative transaction to proxy one of my service classes (which calls a number of ...

95. Problems with Hibernate and Declarative Transaction    forum.springsource.org

Problems with Hibernate and Declarative Transaction Hello all, I am trying to configure declarative transaction for Hibernate 3 using Spring 2.5 My DAO is currently working this way: Code: public class ...

96. updates and declarative transactions    forum.springsource.org

updates and declarative transactions hi. i spent the better part of yesterday on this and i'm pretty sure the way i got it to work is not correct, so i thought ...

97. Spring Hibernate+ declarative transaction using AOP.    forum.springsource.org

Spring Hibernate+ declarative transaction using AOP. Hi , Im using spring 2.5.4 with Hibernate 3.3.1.ga . For transaction Management Im using Spring AOP (Declarative transaction management.) My Business delegator (Manager classes ...

98. using declarative transaction demarcation    forum.springsource.org

using declarative transaction demarcation i have searched this issue a bit on google and spring forum. i am trying to use declarative transaction demarcation showing in static.springframework.org/spring/docs/2.5.x/reference/orm.html#orm-hibernate-tx-declarative when i am testing ...

99. Declarative transaction management, how?    forum.springsource.org

Hi, I'm trying to define a declarative transaction management. I take a look at Spring Reference, Chapter 9 (http://static.springframework.org/sp...on-declarative) where there is an example that use aspect, pointcuts, etc. A spring ...

100. Layered architecture, declarative transaction handling and Hibernate lazily loading    forum.springsource.org

Layered architecture, declarative transaction handling and Hibernate lazily loading I'm new to Spring, but I hope this problem is solvable. The architecture I thought of using is pretty simple and I ...