• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is semi-presistant state in EJB

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic