jQuery in Action, 2nd edition*
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 Murach's Java Servlets and JSP this week in the Servlets 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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java class calls multiple EJBs! will the EJBs share the Txn
 
Similar Threads
Restrictions on Transactions
ejbCreate(..) / ejbPostCreate(..) and appli exceptions
How to make a thread return some value ?
Stateless session and EjbObject
EJB-> java ->new EJB. What will be Txn status in the new EJB and should ejb-ref?