• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt in Entity Bean Synchronization-chapter 6-HFEJB

 
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic