-
EJB 3.0 Transaction attribute for code segment (1 messages)
- Posted by: Santosh Swain
- Posted on: May 13 2009 12:32 EDT
Is it possible to set the transaction attribute for a segment of code inside a method using EJB 3.0 annotation for example method1(){ @TransactionAttribute(RequiresNew) {//Block 1 } @TransactionAttribute(required) {//Block 2 } } Thanks in advance . I have looked through the EJB 3.0 specification and could not able to find anything .Threaded Messages (1)
- reply by rajiv patil on June 12 2009 14:01 EDT
-
reply[ Go to top ]
- Posted by: rajiv patil
- Posted on: June 12 2009 14:01 EDT
- in response to Santosh Swain
I dont think so, you will have to refactor and write the logic in seperate methods and have the two methods called from your existing method..