aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Doubt in Session beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Doubt in Session beans" Watch "Doubt in Session beans" New topic
Author

Doubt in Session beans

Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
HFEJB says in session beans ejbCreate,ejbActivate,ejbPassivate and ejbRemove doesn't not run in transaction context.
It also says to access database and get another beans method you need to be in transaction.
Then it shows that we can access database and get another beans method in ejbCreate,ejbActivate,ejbPassivate and ejbRemove methods.

So i am confuse.
Please help.
Thanks
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
please help me
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Wouldn't that be BMT beans then ?


[My Blog]
All roads lead to JavaRanch
Rajesh Tongia
Greenhorn

Joined: Jun 29, 2007
Posts: 9
Agreed with Christophe,

"HFEJB says in session beans ejbCreate,ejbActivate,ejbPassivate and ejbRemove doesn't not run in transaction context."

This is right when the stateful session bean is running under CMT.

"that we can access database and get another beans method in ejbCreate,ejbActivate,ejbPassivate and ejbRemove methods."

This is when the stateful session bean running under BMT.

Regards,

Rajesh
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Doubt in Session beans