attribute « Transaction « Spring Q&A





1. Does Spring @Transactional attribute work on a private method?    stackoverflow.com

If I have a @Transactional -annotation on a private method in a Spring bean, does the annotation have any effect? If the @Transactional annotation is on a public method, it ...

2. spring.net transaction attribute works only for methods called from outside    stackoverflow.com

In have a service class configured with Spring.NET. DoWork accomplsihes two tasks which should run in two transactions. But Spring.NET seems not invoke any transactional AOP behaviour. I must annotate DoWork() with ...

3. PROPAGATION_REQUIRED transaction attribute in spring?    stackoverflow.com

In first case study given at http://www.vermatech.com/code/SpringTransactionExamples.html, program is calling two methods i.e.

testModel.deleteAllCountries();
testModel.initializeCountries();
where initializeCountries throws runtime exception. For both methods' transaction definition attribute is PROPAGATION_REQUIRED. Still transaction under deleteAllCountries method ...

4. Can Annotated Tractional attributes be changed in Spring through Java reflection?    stackoverflow.com

I would like to change the Transaction attributes (especially the TransactionManager ) during runtime via reflection. Is this possible? eg: @Transactional('ChangeMe')

5. Server failing under load using transaction attributes.    forum.springsource.org

Sep 29th, 2004, 12:12 PM #1 ctran View Profile View Forum Posts Private Message Visit Homepage Junior Member Join Date Aug 2004 Location Eagan, MN Posts 11 Server failing under load ...

6. Cannot resolve the name 'repository:transactional-repository-attributes' to a(n) 'att    forum.springsource.org

May 25th, 2011, 10:58 PM #1 grayfoxdie View Profile View Forum Posts Private Message Junior Member Join Date Aug 2008 Posts 11 Cannot resolve the name 'repository:transactional-repository-attributes' to a(n) 'att Hi ...

7. Setting transaction attributes at runtime with declarative tx management.    forum.springsource.org

Setting transaction attributes at runtime with declarative tx management. hi, I have a requirement where I need to call a method with transaction propagation level based on the incoming request. Lets ...

8. Control Transactions with Java 5.0 Attributes    forum.springsource.org

Control Transactions with Java 5.0 Attributes Hello, Perhaps this really belongs in the AOP forum, but the motivation behind it for me is persistence. It looks like Spring only comes with ...

9. Avoiding error about transaction attributes    forum.springsource.org

Avoiding error about transaction attributes Hi, I'm using Spring, among other, for declarative transaction demarcation. This morning a colleage of mine had a problem, which turned out to be both a ...





10. config Hibernate transaction,Parent attribute don't work?!    forum.springsource.org

config Hibernate transaction,Parent attribute don't work?! Hi everyone: I want to config a HibernateTransaction template,So I can use this template when I need transaction in my Bean. So I config the ...

11. Supporting multiple transaction attribute sources    forum.springsource.org

Supporting multiple transaction attribute sources When configuring the BeanNameAutoProxyCreator, i realized that we can specify only one transaction attribute source. I could not find any provision to specify multiple transaction attribute ...

12. Transaction attributes    forum.springsource.org

Transaction attributes Hello. I have a problem with tansaction attributes. Configuration is: PROPAGATION_REQUIRES_NEW,-Exception PROPAGATION_REQUIRED,-Exception ...

13. Transaction Propagation using attribute PROPAGATION_REQUIRES_NEW    forum.springsource.org

Transaction Propagation using attribute PROPAGATION_REQUIRES_NEW When I declared a new transaction to be used when calling a specific function in a bean, I found that instead of creating a new transaction, ...

14. Unexpected/inappropriate application of rule based transaction attributes    forum.springsource.org

Unexpected/inappropriate application of rule based transaction attributes I have two similar beans defined, one bean when invoked will call for : [org.springframework.transaction.interceptor.RuleBa sedTransactionAttribute] -

15. transaction attribute for select queries    forum.springsource.org

transaction attribute for select queries Hi, I have only select queries in my application. Some other application updates the data. I have defined DAOs this way in spring. Underlying data layer ...

16. Commons attributes transactions and aop:config    forum.springsource.org

Commons attributes transactions and aop:config Hi, I have defined the following configuration for transaction declarations using commons attributes: Code:





17. service layers and transaction attributes    forum.springsource.org

service layers and transaction attributes Hi all! I'm looking for the best practice on the following problem. I've got a service structure, where there is a lower and an upper layer ...

18. specifying transactional attributes using method name pattern    forum.springsource.org

specifying transactional attributes using method name pattern Hi, Currently I use the following annotation to specify that a service method requires a read transaction @Transactional(propagation = Propagation.SUPPORTS) And this annotation indicates ...

19. Problem with transaction-manager attribute with tx:advice and tx:annotation-driven    forum.springsource.org

Problem with transaction-manager attribute with tx:advice and tx:annotation-driven I am trying to set up some unit tests with Spring 2.5.4 for my DAO modeled after the ones in the Petclinic sample ...

20. Quesiton on Transaction Attributes    forum.springsource.org

Quesiton on Transaction Attributes As am learning through spring framework and its advantages, i came across the topic of transaction management using HibernateTransactionManager. Have a question on the attribute names ... ...

21. Transaction management with Apache Commons Attributes    forum.springsource.org

Transaction management with Apache Commons Attributes Hello! For reasons beyond my control I'm stuck with Java 1.4 and because of this I'm planning to use Apache Commons Attributes for marking the ...

22. : no "transaction-attribute"?    forum.springsource.org

I'm trying to setup a non-transactional tasklet using MethodInvokingTaskletAdapter in a simple definition like this: Code: [...] Unfortunately, I ...

23. Default Transactional Attributes applied on a Method    forum.springsource.org

The "readonly" flag defaults to false, so it assumes a read/write transaction. If you know the transaction will only read from the database, then marking it as read-only makes it more ...

24. Transactions with different attributes    forum.springsource.org

Transactions with different attributes Does anyone know if I have a method that has a transactional attribute of propergation=REQUIRED_NEW why it doesn't start in a new transaction? I have a method ...

25. Can't find attribute of "TransactionProxyFactoryBean".    forum.springsource.org

Hello, I need to implement 2 phase commit into my application. To get started, I tried making this tutorial: http://doitifucan.wordpress.com/2010...os-and-tomcat/ When I try to define a bean of the class "TransactionProxyFactoryBean" ...