The Artima Developer Community
Sponsored Link

Java Answers Forum
EJB question

1 reply on 1 page. Most recent reply: Sep 30, 2002 12:11 AM by Satyanarayana

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Ritesh

Posts: 1
Nickname: ritz2002
Registered: Sep, 2002

EJB question Posted: Sep 23, 2002 2:18 AM
Reply to this message Reply
Advertisement
How does Stateful Session bean store its state ?
Why does Stateless Session bean not store its state even though it has ejbActivate and ejbPassivate ?


plzz reply back at

riteshg@vmoksha.com


Satyanarayana

Posts: 1
Nickname: bobdi
Registered: Sep, 2002

Re: EJB question Posted: Sep 30, 2002 12:11 AM
Reply to this message Reply
whenever the idletimeout seconds is reached the container will call the ejbPassivate() method.

The Conversational state of the client will be written to the hard disc(Secondary Storage place) before calling the ejbPassivate() method.

At passivation time the container uses object serialization (or an equivalent protocol) to convert the bean?s conversational state to a
bit-blob and write the state out to disk.

Coming to Stateless Bean, though the container will invoke the ejbActivate() and ejbPasivate(), the state will not be retained, since the intent of using a stateless bean is to behave independently, irrespective of the client. these methods in stateless bean are used for removing activating and passivating the beans from the pool.

Hope the answer would suffice.

Flat View: This topic has 1 reply on 1 page
Topic: Java applet SiteBrowser does not open - browser problem Previous Topic   Next Topic Topic: JSP

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use