About Question com.enthuware.ets.scbcd.v5.2.249 :

Moderator: admin

Post Reply
ETS User

About Question com.enthuware.ets.scbcd.v5.2.249 :

Post by ETS User »

stateless session bean can not have passivization, then correct answer showed @prePassivate is wrong.

please explain why @prePassivate is right choice.

John WU

Re: About Question com.enthuware.ets.scbcd.v5.2.249 :

Post 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??

admin
Site Admin
Posts: 10065
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question com.enthuware.ets.scbcd.v5.2.249 :

Post by admin »

You are right. This has now been fixed.

Thanks for your feedback!
If you like our products and services, please help us by posting your review here.

Oleksandr Usatyy

Re: About Question com.enthuware.ets.scbcd.v5.2.249 :

Post 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?

cjscript
Posts: 8
Joined: Tue Jan 29, 2013 4:14 pm
Contact:

Re: About Question com.enthuware.ets.scbcd.v5.2.249 :

Post by cjscript »

Oleksandr: You were looking at SFSB table. SLSB cannot call isCallerInRole from lifecycle method. Look at 4.5.2 of spec.

Post Reply

Who is online

Users browsing this forum: No registered users and 77 guests