• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stateful Session Bean's transaction attribute

 
Jun Liu
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I try to remember what kind of bean can use what transaction attribute, I found something confusing. The spec points out a stateful session bean that implements the SessionSynchronization can use Required, RequiresNew and Mandatory, but don't mentioned what a "plain" stateful session bean can use, that is, a stateful session bean that does not implement the SessionSynchronization. Also the Mastering EJB 3.0 also said stateless session bean can use all the attribute, and stateful session bean implements SessionSynchronization can use that three, but didn't mention a plain stateful session bean. What's about this?
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The transaction attributes allowed by SFSB implementing a SessionSynchronization interface are logical. If the bean does not implement that interface, i believe it can use any of the available transaction attributes.

...so... in your words a plain SFSB should be able to use any of the transaction attribute..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic