Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is semi-presistant state in EJB  RSS feed

 
Vasantha Prabha
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!