Forums Register Login

What is semi-presistant state in EJB

+Pie Number of slices to send: Send
Hi can any one explain me what is semi-presistant state in EJB
This will occur during ejbpassivate().
What I understant is when timeout occur Container will call this
ejbpassivate to release the resources.
will the instance still holds any reference in the semi-presistance
state
Regards,
Vasantha
+Pie Number of slices to send: Send
 

Originally posted by Vasantha Prabha:
Hi can any one explain me what is semi-presistant state in EJB
This will occur during ejbpassivate().


semi-persistent state? :roll:
I am also curious to know.
+Pie Number of slices to send: Send
Hi Vasantha,
I am aware of Non-persistent state and not semi-persistent state.
Non-persistent state
--------------------
Bean Provider may use instance variables in entity bean instance to maintain non-persistent state, e.g., a JMS connection.
Bean Provider can use instance variables to store values that depend on persistent state of entity bean instance, although this use is not encouraged. Bean Provider should use ejbLoad() method to resynchronize values of any instance variables that depend on entity bean�s persistent state. In general, any non-persistent state that depends on the persistent state of an entity bean should be recomputed during the ejbLoad() method.
As mentioned by Vish Kumar, what is semi-persistent state? During ejbPassivate, do u mean that during saving to some persistent storage, the timeout takes place and incomplete or partial values gets shifted to the storage media.
Rgds,
Seetesh
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 668 times.
Similar Threads
Some basic doubts on session beans...
ejbPassivate question?
What are the call back methods in EJB
ejbActivate() and ejbPassivate()
does ejbRemove() ever called on stateful bean?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:10:05.