Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Meaningful transaction context and ejbActivate()

Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The top half of page 348 in HFE says ...sees that this metod needs a transaction, so the container starts one then pulls a bean from the pool, AND CALLS EJBACTIVATE...

Is this true? Is there a meaningful transaction context in ejbActivate()?

One more thing...HFE refers to a performance and patterns chapter..I don't have one in my book, does anybody?
[ January 15, 2005: Message edited by: Eddie Long ]
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Container starts a transaction if needed but when ejbActivate is called bean is not associated with any client or with an EJB entity so does that matter if it is under transaction? So ejbActicate can't participate in the transaction.

I'm stil preparing so dont know if my explation is clear or correct.
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
business method getAddress executes in transaction context,so container starts transaction.

ejbActivate executes with unspecified transaction context.
You got style baby! More than this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic