posted 18 years ago
The question Q4 goes as which methods can call 'isCallerInRole' for a stateful session bean
Options that are shown as right ones are
ejbCreate,ejbActivate,ejbPassivate
The question Q6 goes as which methods can call 'getCallerPricipal'for a CMP entity bean
Here it says 'ejbActivate' and 'ejbPassivate' cannot call the above said method as there is no client associated with the bean.
Although the spec also says the same , I am not able to understand this.
How come a session bean would be associated with a client during 'ejbActivate' and 'ejbPassivate' when an entity bean cannot ?
Could anyone throw some light on this ?
Thanks