propagation « Transaction « Spring Q&A





1. Spring @Transactional read-only propagation    stackoverflow.com

I'm experimenting with using the command pattern to allow my web layer to work with Hibernate entities within the context of a single transaction (thus avoiding lazy loading exceptions). I am, ...

2. Question about spring transaction propagation    stackoverflow.com

I have a question about spring transaction propagation. If I use @Transactional(propagation = Propagation.REQUIRED) to annotate a method m1. When execution logic enter m1, if there is already a transaction, m1 ...

3. Spring Transaction propagation issue    stackoverflow.com

I am using Transaction management with Spring and Hibernate. My situation is as follow:
I have got bean A which is sorrounded by transaction and it call bean B which is defined with ...

4. what exactly "Propagation.REQUIRES_NEW" means using Spring transaction management?    stackoverflow.com

my confusion related to this matter is that how we can use a previously created transaction? or in other words how many threads a transaction could be related to?

5. Spring Transactions With Supports Propagation    stackoverflow.com

I would like to understand the use of having a spring transaction with Propagation Supports. The java docs mentions that if the method which has @Transactional(propagation = Propagation.SUPPORTS) is called from ...

6. When to use @Transactional's propagation=Proagation.REQUIRES_NEW?    stackoverflow.com

My question is simple and nearly already stated in the title: Is there a specific pattern/ use-case where one would say that @Transactional(propagation=Proagation.REQUIRES_NEW) instead of the default propagation should be used? Thanks ...

7. Propagation required clariification spring    stackoverflow.com

wanted to clarify the Propagation required fundamental with below scenarios. . Please let me know if below understanding is correct.

Class MyClass1{

//Propagation is Propagation required
public void method1();
{

method1A();
method1B();
MyClass2 myClass2= new MyClass2();
myClass2.method2A();
myClass2.method2B();
}


// No porapgation ...

8. Two JPA persistence units - transaction propagation?    forum.springsource.org

Two JPA persistence units - transaction propagation? I have two persistence units which I am loading into a org.springframework.orm.jpa.persistenceunit.Defaul tPersistenceUnitManager - the configuration is like this; Code:

9. Transaction propagation failure    forum.springsource.org

Transaction propagation failure Hello all, I apologize if this question has already been asked, but I couldn't locate any references to a situation like mine. I have 2 modules, each has ...





10. Calling method that marked @Transactional (propagation=Propagation.REQUIRES_NEW)    forum.springsource.org

Calling method that marked @Transactional (propagation=Propagation.REQUIRES_NEW) Hello, everyone! There are two classes: Code: @Component public class A { @Autowired private B b; @Autowired private DefaultJdbcTemplate jdbcTemplate; @Transactional public void doA() { ...

11. PROPAGATION_REQUIRES_NEW Transaction Definition    forum.springsource.org

It's impossible - try searching the forum for similar threads for a long explanation. In short, the Hiberante session can't have more then one transaction binded to it - PROPAGATION_REQUIRES_NEW thus ...

12. Transaction propagation problems    forum.springsource.org

Transaction propagation problems sping version 1.1.4 I have a problem propagating transactions properly. I have a class: Code: public class CachingJCompAdminService implements JCompAdminService { getSchedule () { if (!notInCache) { init ...

13. Transaction propagation    forum.springsource.org

Transaction propagation Hi, I have a jar file for data access. it manages the transactions using Spring. i use GenericApplicationContext to load beans and transaction information. This jar file is used ...

14. Transaction handling with PROPAGATION_MANDATORY    forum.springsource.org

Transaction handling with PROPAGATION_MANDATORY Hi everyone. I have a problem with correct transaction handling. Heres what I like to do: I want to run some command classes in a chain. Every ...

15. "Transaction Propagation 'Requires New' causing proble    forum.springsource.org

Oct 8th, 2005, 06:21 AM #1 shaby775 View Profile View Forum Posts Private Message Senior Member Join Date Aug 2004 Posts 105 "Transaction Propagation 'Requires New' causing proble Hi, I am ...

16. PROPAGATION_SUPPORTS = Transaction always?    forum.springsource.org

PROPAGATION_SUPPORTS = Transaction always? I am really pulling out my hair here! I have my service object proxied as follows: ...





17. Hibernate3 to Hibernate2 Transaction propagation    forum.springsource.org

Hibernate3 to Hibernate2 Transaction propagation Hi, I'm trying to call a method that is wrapped in hibernate 2 transaction (org.springframework.orm.hibernate.HibernateTransa ctionManager) from a method wrapped in hibernate 3 transaction. Both of ...

18. Transaction propagation    forum.springsource.org

Hi all, My scenario is based on appfuse: spring + dao + hibernate + service (Business Facade). Hibernate transaction is based on org.springframework.orm.hibernate3.HibernateTransa ctionManager Service transaction is managed through a transactionProxyTemplate ...

19. Transaction propagation    forum.springsource.org

Transaction propagation I am using spring and hibernate. I am working on a system that has a single (and very large) service class defined as a TransactionProxyFactoryBean. I want to create ...

20. Transaction Management: Propagation    forum.springsource.org

Hi, I am developing an application using Spring 1.2.8. I would like to have a test-only feature which means transaction would be rollback afterwards. Can I register some object with the ...

21. propagation_required in TransactionProxyFactoryBean    forum.springsource.org

propagation_required in TransactionProxyFactoryBean Hi, Could someone explain to me what exactly is the meaning of PROPAGATION_REQUIRED in a typical TransactionProxyFactoryBean configuration, e.g. Code: ...

22. transaction propagation setting issue    forum.springsource.org

transaction propagation setting issue Hi all, I have classA.x() calling classB.y(). I am using Spring 2.0 's AOP based declarative transaction settings in the config file; On classA.x(), the transaction propagation ...

23. Problems with propagation behaviour in transactions    forum.springsource.org

Problems with propagation behaviour in transactions Hi, I'm having problems when setting a save point and rolling back where another transaction is run in between with PROPAGATION_REQUIRES_NEW. I'm doing this programmatically ...

24. Problem with nested transactions using PROPAGATION_REQUIRED    forum.springsource.org

Problem with nested transactions using PROPAGATION_REQUIRED Spring 1.2.6 Hibernate 3.2.1 Java 5.0_06 Oracle 10g Summary : problem with nested transactions using PROPAGATION_REQUIRED. I have a situation where I have declared transactions ...

25. PROPAGATION_REQUIRED always starts new transaction    forum.springsource.org

PROPAGATION_REQUIRED always starts new transaction Hey, not sure I have this setup right. I feel like it was working at one point. Basically, I have a DOA function called mergeTask. I ...

26. @Transactional New Transactional propagation    forum.springsource.org

@Transactional New Transactional propagation Hi, I use the @Transactional annotation for my transaction management within my application. Not JTA but resource-local and JPA Transaction Manager is my platform transaction manager class ...

27. Transaction propagation question    forum.springsource.org

Transaction propagation question Hi guys. Not sure if it's right place for question, but anyway. I can't understand how is the propagation mechanism works. So, I have an interface Code: package ...

28. Transaction propagation question    forum.springsource.org

Transaction propagation question Hi guys. Not sure if it's right place for question, but anyway. I can't understand how is the propagation mechanism works. So, I have an interface Code: package ...

29. Transaction propagation support in Spring    forum.springsource.org

Transaction propagation support in Spring I have this scenario: AppServer1 - EJB1 - DB1 AppServer2- EJB2 - DB2 My application is deployed in Appserver2 alongwith the EJB2. My application architecture: EJB2- ...

30. Programmatic transaction propagation problem    forum.springsource.org

Sep 10th, 2007, 04:10 PM #1 os50 View Profile View Forum Posts Private Message Junior Member Join Date Sep 2007 Posts 1 Programmatic transaction propagation problem I am currently working in ...

31. PROPAGATION_REQUIRED behavior when transaction already exists    forum.springsource.org

PROPAGATION_REQUIRED behavior when transaction already exists Hy I'm using Spring 2.06 and hibernate 3.2 for db access. I've got a DAO bean that I've made transactional threw a TransactionProxyFactoryBean setting the ...

32. Spring transaction propagation SUPPORTS    forum.springsource.org

Spring transaction propagation SUPPORTS If one method within transaction invokes other method which does'nt have @Transaction than transaction simply propagates to the second method. But if we annotate the second method ...

33. Transaction propagation problem    forum.springsource.org

34. Transaction Managment (PROPAGATION_NESTED)    forum.springsource.org

Transaction Managment (PROPAGATION_NESTED) Hi all, I have been trying to use the PROPAGATION_NESTED but it does not seem to work for me.. Here is my java code public void inner1(String role, ...

35. Hibernate JTA transaction propagation    forum.springsource.org

Hi all, I'd like to specify my transactions on service layer instead of DAOs. My service transfers money between 2 accounts. Something like: Code: void serviceMethod(long id1, long id2, double value) ...

36. @Transactional(propagation=Propagation.REQUIRED) not creating a new transaction?    forum.springsource.org

@Transactional(propagation=Propagation.REQUIRED) not creating a new transaction? Hi, I have a program that can do reads from my database using JPA/TopLink RI and supposedly JTA with GlassFish V2. When I try to ...

37. 'PROPAGATION_REQUIRES_NEW' in nested transactions    forum.springsource.org

'PROPAGATION_REQUIRES_NEW' in nested transactions Hi, I am facing a problem while implementing programmatic transaction management using PlatformTransactionManager. I have two DAOs which should be a part of single transaction. The first ...

38. Unable to roll back when transaction propagation="NESTED"    forum.springsource.org

Oct 28th, 2008, 05:21 AM #1 charmchuan View Profile View Forum Posts Private Message Junior Member Join Date Apr 2008 Posts 14 Unable to roll back when transaction propagation="NESTED" Hi all, ...

39. Questions about @Transactional propagation...    forum.springsource.org

Questions about @Transactional propagation... Greetings. I had a method like this: MyService.java MyServiceImpl.java Code: public interface MyService { public void doSomething(); } @ Transactional public class MyServiceImpl implements MyService { @ ...

40. Transaction propagation    forum.springsource.org

Transaction propagation Hi I have one doubt in the transaction propagation Here is the Scenario.... I have two methods in service beans say loadX and saveX. I configured Declarative transactions for ...

41. @Transaction(propagation=xxxx) not working    forum.springsource.org

@Transaction(propagation=xxxx) not working I have a service layer class that uses two DAO classes, each configured for a different JPA persistence unit/database. The service does reads on both, but only writes ...

42. About Transaction Managers Propagation Support    forum.springsource.org

Note that isolation level and timeout settings will not get applied unless an actual new transaction gets started. As only PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW and PROPAGATION_NESTED can cause that, it usually doesn't make ...

43. Transaction propagation across multiple layers    forum.springsource.org

Transaction propagation across multiple layers Hello, In my application, we have multiple layers through which a transaction must propagate through. Service Layer (starts the transaction) --> Manager Layer --> DAO All ...

44. Set transaction propagation to use different methods    forum.springsource.org

Hi to all, I need to use the same transaction over different methods calling. I have the first service method, marked as transactional, that calls another a generic insert DAO method. ...

45. Propagation of read-only transaction property    forum.springsource.org

Propagation of read-only transaction property Hi all, I'm confused about how Spring deals with transaction propagation where the read-only property varies from one method to the next. I'm experimenting with using ...

46. No existing transaction found for transaction marked with propagation 'mandatory'    forum.springsource.org

No existing transaction found for transaction marked with propagation 'mandatory' environment: Spring 2.5.2 SWF 1.0.5 DWR 2.0.5 Error Message: org.springframework.transaction.IllegalTransaction StateException: No existing transaction found for transaction marked with propagation 'mandatory' ...

47. Transaction propagation required not working    forum.springsource.org

Feb 23rd, 2010, 12:07 PM #1 rtambat74 View Profile View Forum Posts Private Message Junior Member Join Date Feb 2010 Posts 2 Transaction propagation required not working I am trying transaction ...

48. Transaction propagation problem    forum.springsource.org

May 5th, 2010, 01:05 PM #1 BlueApple View Profile View Forum Posts Private Message Junior Member Join Date Mar 2009 Posts 14 Transaction propagation problem Hi, I have a problem with ...

49. Query regarding Transaction Propagation.    forum.springsource.org

Hi, We are using declarative transaction in spring. I had a query regarding nested transaction. I have two methods Code: @Transactional(readOnly=true) public void m1(){ ...... m2(); ...... } @Transactional(readOnly=false) public void ...

50. @Transactional Propagation    forum.springsource.org

I am using Propagation.REQUIRED for my services and Propagation.MANDATORY for my DAOs. The idea is that services should have atomic operations, and that no-one should be tunnelling to the DAOs except ...

51. Transaction propagation is not happening    forum.springsource.org

Transaction propagation is not happening I was trying to see how a transaction propagation works.I am working with the sample example. 1 . Here is the advice i have written ------------------------------------------------------------------------- ...

52. Spring Transaction propagation issue    forum.springsource.org

Spring Transaction propagation issue Hi Springers, I don't know if this is the right branch of the forum to raise issues regarding Spring transaction management, so in case there is a ...

53. @Transactional Propagation Problem    forum.springsource.org

@Transactional Propagation Problem Hi, I'm using and have the following (simplified): Code: @Transactional public class Service { private Dao dao; @Transactional(propagation = Propagation.REQUIRED) public void foo() { dao.foo(); } ...

54. Mixing transaction propagation behaviors    forum.springsource.org

I'm playing with transaction control recently using programmatic approach (using PlatformTransactionManager). I read the official documentation but seems there is no discussion about mixing transaction with different propagation behaviors? For example, ...