This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Lifecycle callbacks, transaction and security contexts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Lifecycle callbacks, transaction and security contexts" Watch "Lifecycle callbacks, transaction and security contexts" New topic
Author

Lifecycle callbacks, transaction and security contexts

Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
Hi.
In the specs section 4.3.4 says for each lifecycle callback, that it runs in an unspecified security and transaction context. However, for statefull session beans, according to the table on page 79, we can call EJBContext.getCallerPrincipal() / isCallerInRole(). This would imply that they return valid results, and security context does exist. Also, we can use other beans, resource managers and so on, which would mean there is some transaction context.
Could someone clear this up for me, please?

Raf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Lifecycle callbacks, transaction and security contexts
 
Similar Threads
Stateless/stateful beans and lifecycle
accessing resource managers in ejbCreate()
Question on Lifecycle callbacks of Enterprise Beans
Unspecified Transaction context
Security Methods of EJBContext