May be it's a good idea to add following points to explanation:
ejb 3.1 Spec 4.2.1Instance Passivation and Conversational State
•A reference to a container-managed EntityManager object, even if it is not serializable.
•A reference to an EntityManagerFactory object obtained via injection or JNDI lookup, even if it is not serializable.
•A reference to a javax.ejb.Timer object.
and regarding a sentence in the explanation:
"The last bulleted item covers cases such as storing Collections of component interfaces in the conversational state."
You didn't put any bullets to the points.
------------------------------------------------------------
I have one small doubt... This might be very silly but it's confusing me
When you passivate a javax.ejb.Timer object, is it going to harm the scheduled timers? Just the reference object is going to be passivated right? I guess that scheduled timers are maintained separately by container.... I am right?
Thanks,
Prakash Yaji
About Question enthuware.oce-ejbd.v6.2.569 :
Moderator: admin
-
- Posts: 25
- Joined: Sun May 13, 2012 1:39 am
- Contact:
-
- Site Admin
- Posts: 10055
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.569 :
Yes, only the reference object is passivated. The timers are maintained separately. As per Section 18.2:
Paul.
Thank you for your suggestion. This has now been added.Timers survive container crashes, server shutdown, and the activation/passivation and load/store cycles of the enterprise beans that are registered with them.
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 25
- Joined: Sun May 13, 2012 1:39 am
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.569 :
Thank you for your clarification!
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.569 :
Regarding to the timer in activation/passivation of a stateful bean, a timer has not been implemented in any stateful bean yet. Even though the specification says a timer will be serialized / deserialized during activation/passivation, a timer has not been used with a stateful bean.
-
- Posts: 31
- Joined: Sun Dec 27, 2015 1:47 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.569 :
good point himaiMinh
Who is online
Users browsing this forum: No registered users and 32 guests