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

Moderator: admin

Post Reply
prakashyaji
Posts: 25
Joined: Sun May 13, 2012 1:39 am
Contact:

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

Post by prakashyaji »

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 :P
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

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

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

Post by admin »

Yes, only the reference object is passivated. The timers are maintained separately. As per Section 18.2:
Timers survive container crashes, server shutdown, and the activation/passivation and load/store cycles of the enterprise beans that are registered with them.
Thank you for your suggestion. This has now been added.
Paul.

prakashyaji
Posts: 25
Joined: Sun May 13, 2012 1:39 am
Contact:

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

Post by prakashyaji »

Thank you for your clarification!

himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

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

Post by himaiMinh »

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.

aazizi.tarik
Posts: 31
Joined: Sun Dec 27, 2015 1:47 pm
Contact:

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

Post by aazizi.tarik »

good point himaiMinh

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests