• Post Reply Bookmark Topic Watch Topic
  • New Topic

bean things during different methods.  RSS feed

 
Arun Natarajan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is it allowed to do the following 2 thing in the ejbCreate/ejbRemove methods of a Stateful Session bean and not a Stateless Session bean?

Access another bean's methods
Access a resource manager (like a database)

Thanks.
 
Marcelo Ortega
Ranch Hand
Posts: 528
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quote from the specs:

Accessing resource managers and enterprise beans is disallowed in the session bean methods for which the Container does not have a meaningful transaction context or client security context.


Regards.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!