Page 1 of 1
About Question com.enthuware.ets.scbcd.v5.2.292 :
Posted: Wed Mar 23, 2011 4:15 pm
by ETS User
Under one of the answers there is explanation:
"A stateless session bean cannot access resource managers in @PostCreate() or @Remove methods."
But there's no @PostCreate annotation. It should be @PostConstruct.
Re: About Question com.enthuware.ets.scbcd.v5.2.292 :
Posted: Thu Mar 24, 2011 7:57 pm
by admin
This has now been corrected. Thanks a lot for your feedback!
Re: About Question com.enthuware.ets.scbcd.v5.2.292 :
Posted: Wed Sep 21, 2011 8:41 pm
by Guest
Hi,
According spec, PostConstruct, PreDestroy, PrePassivate, PostActivate lifecycle callback interceptor methods can access Resource Manager.
Thus option 1 is correct as well.
It may be a @PostConstruct method.
Is that right?
Re: About Question com.enthuware.ets.scbcd.v5.2.292 :
Posted: Wed Jul 10, 2013 4:00 pm
by cjscript
They can access from SFSB but not SLSB. There must be a valid transaction context.