• 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

Usage of ejbActivate() method in entity Beans

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends,

Iam reading HF EJB In entity Beans the book says that in ejbactivate method we cannot call security releated methods of entity context. (Pg No 354)

Can anybody clear me why this is not possible..

what i think when client calls a buisness method , the bean is called from the pool and after that ejbactivate is called so it is called in a client context.

can anybody explain me this out.

thanks.
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In this case, the spec is giving the vendor flexibility in handling the ejbActivate() call so that it could possibly be called prior to a client invocation.

Please visit the following threads for detailed explanations.

Bean things are confusing!

ejbActivate
 
rajendar medishetty
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks I got it.....

U mean to say that we cannot say when ejbactivate is called .......
so there is no scope of client information.......
container may call it some other time....for many reasons right....

once again thanks,
 
Ramakrishnan Viswanathan
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. It is left to the vendor. Since it is possible that ejbActivate() could be called prior to a client invocation, we cannot assume that the security information will always be available at this point of time.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic