Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.492 :

Posted: Tue May 03, 2011 4:14 am
by deadlock_gr
I have 2 points:

1. The business method is not called by the container, but by the client.
2. Also, what if the setSessionContext method does not exist, and the SessionContext is rather injected?

Re: About Question enthuware.oce-ejbd.v6.2.492 :

Posted: Tue May 03, 2011 5:51 am
by admin
1. It is the container that invokes the business method as result of a call from the client.
2. Even if the Session Context is injected, it would be done after the constructor is done. But your point is valid, this may cause confusion. It needs to be improved.

Thanks for the feedback!

Re: About Question enthuware.oce-ejbd.v6.2.492 :

Posted: Sun Jun 26, 2011 1:32 pm
by jszczepankiewicz
misspell in explanation:
(...)It can also not implement SessionSyncrhonization.

Re: About Question enthuware.oce-ejbd.v6.2.492 :

Posted: Mon Jun 27, 2011 8:35 pm
by admin
Fixed. Thanks for your feedback!

Re: About Question enthuware.oce-ejbd.v6.2.492 :

Posted: Tue Jul 30, 2013 11:11 am
by kezman9
The answer says that the first method called on SLSB by container is constructor. I think it's precise to say that container calls newInstance on bean class which in turn invoke the zero-argument constructor.

Spec 4.7.1
A stateless session bean instance’s life starts when the container invokes the newInstance method on the session bean class to create a new session bean instance.
But as for me the original explanation is also clear.

Thanks,
Jarek

Re: About Question enthuware.oce-ejbd.v6.2.492 :

Posted: Wed Jul 31, 2013 11:20 am
by admin
kezman9 wrote:The answer says that the first method called on SLSB by container is constructor. I think it's precise to say that container calls newInstance on bean class which in turn invoke the zero-argument constructor.
Fixed.

thank you for your feedback!