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?
About Question enthuware.oce-ejbd.v6.2.492 :
Moderators: Site Manager, fjwalraven
-
- Posts: 54
- Joined: Tue Apr 19, 2011 10:32 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.492 :
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!
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 :
misspell in explanation:
(...)It can also not implement SessionSyncrhonization.
(...)It can also not implement SessionSyncrhonization.
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.492 :
Fixed. Thanks for your feedback!
-
- Posts: 26
- Joined: Fri Jul 06, 2012 1:08 am
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.492 :
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
Thanks,
Jarek
Spec 4.7.1
But as for me the original explanation is also clear.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.
Thanks,
Jarek
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.492 :
Fixed.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.
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 1 guest