Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Session beans

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please help me
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouldn't that be BMT beans then ?
 
Rajesh Tongia
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic