aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes java class calls multiple EJBs! will the EJBs share the Txn Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "java class calls multiple EJBs! will the EJBs share the Txn" Watch "java class calls multiple EJBs! will the EJBs share the Txn" New topic
Author

java class calls multiple EJBs! will the EJBs share the Txn

Gul Khan
Ranch Hand

Joined: Sep 03, 2003
Posts: 173
Hi
If a java client is calling methods on multiple EJBs, all EJB methods having txn attribute "required". Will all the EJB methods run in the same txn? or every EJB method will run in a new one?
There is no txn related code in the client.
Keerthi P
Ranch Hand

Joined: Aug 19, 2003
Posts: 203
Originally posted by pervaiz gul:
Hi
If a java client is calling methods on multiple EJBs, all EJB methods having txn attribute "required". Will all the EJB methods run in the same txn? or every EJB method will run in a new one?
There is no txn related code in the client.


Since the client is invoking the methods from a non-transaction context, the container will run each methods in a new TX context.


Cheers.<br />Keerthi<br />(SCJP, SCWCD, SCBCD)
 
 
subject: java class calls multiple EJBs! will the EJBs share the Txn