Win a copy of Microservices Testing (Live Project) this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Meaningful transaction context and ejbActivate()

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy,
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 ]
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
business method getAddress executes in transaction context,so container starts transaction.

ejbActivate executes with unspecified transaction context.
reply
    Bookmark Topic Watch Topic
  • New Topic