• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Stateless/stateful beans and lifecycle

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings,
I have a doubt about page 79 specs: for stateful session beans, you can access to enterprise beans at lifecycle callback methods. However, this is not true for stateless session beans. The specs say that this is due to the fact that there is not transaction context (pag. 90), but at paragraph 13.6.5, the specs say that "The execution of a PostConstruct, [...], PrePassivate callback method of a session bean with container-managed transaction demarcation" are executed in an unspecified transaction context.
So, why can a stateful session bean invoke, for example, an enterprise bean, in a lifecycle callback interceptor method even if there is not transaction context?

Thanks in advances
 
reply
    Bookmark Topic Watch Topic
  • New Topic