Page 1 of 1
About Question com.enthuware.ets.scbcd.v5.2.249 :
Posted: Mon Aug 08, 2011 9:34 pm
by ETS User
stateless session bean can not have passivization, then correct answer showed @prePassivate is wrong.
please explain why @prePassivate is right choice.
Re: About Question com.enthuware.ets.scbcd.v5.2.249 :
Posted: Thu Aug 25, 2011 10:54 am
by John WU
ETS User wrote:stateless session bean can not have passivization, then correct answer showed @prePassivate is wrong.
please explain why @prePassivate is right choice.
I share the same view above. Any feedback??
Re: About Question com.enthuware.ets.scbcd.v5.2.249 :
Posted: Thu Aug 25, 2011 2:35 pm
by admin
You are right. This has now been fixed.
Thanks for your feedback!
Re: About Question com.enthuware.ets.scbcd.v5.2.249 :
Posted: Thu Nov 17, 2011 1:34 am
by Oleksandr Usatyy
I noticed that @PostConstruct cannot invoke inCallerInRole according to correct answer in simulator.
But Enterprise JavaBean 3.0 core spec(page 79) said that isCallerInRole can be invoked from all lifecycle methods.
Have I missed something?
Re: About Question com.enthuware.ets.scbcd.v5.2.249 :
Posted: Wed Jan 30, 2013 11:29 am
by cjscript
Oleksandr: You were looking at SFSB table. SLSB cannot call isCallerInRole from lifecycle method. Look at 4.5.2 of spec.