aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Security Methods of EJBContext
Unspecified Transaction context
Question on Lifecycle callbacks of Enterprise Beans
Stateless/stateful beans and lifecycle
accessing resource managers in ejbCreate()