Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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

transaction context

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic