• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Stateful Session Bean's transaction attribute

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic