Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Meaningful transaction context and ejbActivate()

 
Eddie Long
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • 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 ]
 
Nitin Singh
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • 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.
 
Krishnaraj Govindaraju
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic