Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Gul Khan
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic