| Author |
question for commit-rollback
|
Rajni Patel
Ranch Hand
Joined: Sep 03, 2009
Posts: 84
|
|
Hi,
I have one application which is already built in EJB 3 which i have not created. It is working fine. I am not used to with EJB.
In this application, there is more than one insert and update in one transaction.
Codder haven't write any where commit or rollback.
only in weblogic-application.xsd file
<element name="new-conn-for-commit-enabled" type="wls:true-falseType" minOccurs="0"/>
line he has written.
Can any one tell me how can it manages commit and rollback? It should there any settings in weblogic 10.3?
Thanks in advance.
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
Presumably this coder is using container managed transactions? You could ask him/her to be 100% sure.
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Rajni Patel
Ranch Hand
Joined: Sep 03, 2009
Posts: 84
|
|
Thanks for reply.
in code how can i find coder has used container managed transaction?
thanks in advance.
|
 |
Aalok Singh
Greenhorn
Joined: May 27, 2010
Posts: 14
|
|
Check catch block... there must be some setRollbackonly() ...
HTH,
Aalok
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
...or there may be, depending on the exceptions thrown. Asking the original developer is the best way, or looking at the deployment descriptor.
|
 |
 |
|
|
subject: question for commit-rollback
|
|
|