Feb 13th, 2009, 12:26 PM
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 both the methods.
For load transaction properties are READ_ONLY and PROPOGATION REQUIRED
For save transaction properties are PROPOGATION REQUIRED
Some saveX methods will call loadX methods internally.
My doubt is: When save method starts a transaction will be binded. And inside save a load method with READ_ONLY property is called. So, will the same save transaction will be continued or a new transaction will be started for Load?
I want to know what happens for Vice Versa. That is if a load method calls a save method in side it.
Thanks in advance
Feb 14th, 2009, 02:01 AM
I suggest the reference guide chapter 6 explains proxies, chapter 9 explains transactions. As long as you dont use REQUIRES_NEW the same transaction is used..
Feb 14th, 2009, 07:34 AM
I recomment you to take a look at the book "Java Transaction Design Strategies". You can find it for download on Infoq.
Feb 17th, 2009, 09:55 AM
Thank you. I'll go through