aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes transaction context 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 "transaction context" Watch "transaction context" New topic
Author

transaction context

Carlos Llona
Greenhorn

Joined: Apr 09, 2004
Posts: 15
Hello

does anybody know witch methods (Entity bean) run in the transaction context of the method that causes their invocations???

I know that ejbSelect method performs like that type, other?

thanks a lot

Carlos
Christian D. Th. Sellberg
Greenhorn

Joined: Apr 02, 2004
Posts: 10
Hi Carlos,

All entity bean methods which are invoked by the container in relation to a client call can participate in the clients transaction i.e. ejbCreate, ejbPostCreate, ejbRemove, ejbHome, ejbLoad, ejbStore and all business methods.

The following methods are invoked by the container unrelated to a client call: setEntityContext, unsetEntityContext, ejbActivate and ejbPassivate.

Kind regards
Christian
Lionel Orellana
Ranch Hand

Joined: Mar 19, 2004
Posts: 87
Depends on the transaction attribute Carlos. If your ejbCreate for example is marqued with Required, RequiresNew or Mandatory then it will run in the context of the caller, assuming the caller was in a transaction ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: transaction context
 
Similar Threads
TRANSACTION CONTEXT
how to check transaction already started or not
Regarding Tx and Security Context for Interceptor method
Meaningful transaction context and ejbActivate()
questions?