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

Moderator: admin

Post Reply
ETS User

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

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

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

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

Post by admin »

This has now been corrected. Thanks a lot for your feedback!

Guest

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

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

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

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

Post by cjscript »

They can access from SFSB but not SLSB. There must be a valid transaction context.

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests