Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question for commit-rollback

 
Rajni Patel
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Presumably this coder is using container managed transactions? You could ask him/her to be 100% sure.
 
Rajni Patel
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply.

in code how can i find coder has used container managed transaction?

thanks in advance.
 
Aalok Singh
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check catch block... there must be some setRollbackonly() ...


HTH,

Aalok
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...or there may be, depending on the exceptions thrown. Asking the original developer is the best way, or looking at the deployment descriptor.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic