• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Entity Bean Synchronization-chapter 6-HFEJB

 
Amit Batra
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.366, Q-18.) Which methods run in the tx context of the method that causes their invocation. The Answer is shown as: A, B , C.
My question is why cant option D(ejb Activate()) also be in that list?
P348 shows the illustration where in step 1. the clicnt calls a method and the container then starts a tx realizing that none exists in step 4, after that ejbActivate() is called, so cant ejbActivate() also be considered a method that runs in the tx context of the method that causes it?
 
Herman Schelti
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Amitabha,

Look at the ejb2.0 specs(page 176): The container invokes this method with an unspecified transaction context.

Or look at page 354 of HFEJB: 'ejbActivate() is too early.'

Hope this helps,
Herman
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic