Results 1 to 4 of 4

Thread: Transaction propagation

  1. #1
    Join Date
    Feb 2009
    Posts
    6

    Default 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 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

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    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..
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Jan 2009
    Posts
    18

    Default

    Hello,

    I recomment you to take a look at the book "Java Transaction Design Strategies". You can find it for download on Infoq.

    best regards

  4. #4
    Join Date
    Feb 2009
    Posts
    6

    Default

    Thank you. I'll go through

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •