• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Usage of ejbActivate() method in entity Beans

 
rajendar medishetty
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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.
 
Ramakrishnan Viswanathan
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic