Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction...

 
Gunjan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have one query re:how transaction is managed in the following scenario
I have a session bean method which has a transaction attribute of 'Required' and from this method I am calling a method of an Entity bean which has no transaction attribute.....will in this case the method of the entity bean operate under transaction?
Gunjan.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess would be that the entity bean executes within an unspecified transaction context. On the other hand, WebLogic, for example, defaults to "Supports" if bean provider hasn't specified a transaction attribute for the entity bean.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lasse is right. Please check your vendors doc for the default transaction attribute.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic