Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Doubt in Session beans

 
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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouldn't that be BMT beans then ?
 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic