Handling multiple transaction


EJB design: Handling multiple transaction

  1. Handling multiple transaction (2 messages)

    Hi, I have a requirement as below. I have two methods in my business delegate class. which calls two seperate Session beans which int urn call two seperate DAOs (hibernate). What I want is ,the two methods in the delegate class should be in a single transaction.Can any one tell me what the best practice to do this? Make the business delegate class as a session facade (a stateless sesson bean)? How can make this possble and bring the tow method calls in a single transaction. Please help? Thanks Sha
  2. Re: Handling multiple transaction[ Go to top ]

    why don't you put the call to those two beans in a third bean which instantiates a new transaction?
  3. Re: Handling multiple transaction[ Go to top ]

    you can use CMT for the two ejbs in the ejbs xml ? This will let you propogaye the transaction from one session bean to another. Use the require transaction attribute. (required) Let me know how it goes. Thanks, Vinant Pandey