Javed
Posts: 15
Nickname: javedm
Registered: Aug, 2002
|
|
Re: Session Object & Server Crash
|
Posted: Aug 20, 2002 12:34 AM
|
|
> Hi Geniuses, This sounds little insulting. We are all java developers here some may be good at one topic and others at some other topic. > > PART I > What will happen to the session object when the > connection from the client is disconnected ? > > Does it depend on the type of session object created > scope > OR > Does it depend on the type of session handling used, > e.g Cookies, Session objects,etc
What ever is the case, if the connection is lost from the client, the session gets timedout, time out is set by the programmer.
> > PART II > > Also What happens to the session object when the > server crashes. Does any server support "server > crash"
what do u mena by 'Does any server support "server > crash"'. It did not get this.
> > Ex > When ur in a transaction & the server crashes, the > client will not be aware of this server crash, When > the server re-starts the transaction should be > continued rather the client re-starting the > transaction from scratch. What ever data is > transacted before the server crash will be rolled > back or not.
If u use transactions (JTA for ex. ur transaction will be rolled back) > > In a cluster of servers the transaction may be > handled by another server. This is possible only if > there is a replication of the transaction available > > Not to intentionally trouble your'll, I need to know > the answer in stituations when u have a Single Server > & in Cluster of Servers.
It is difficult to handle such situations where a server fails and the session is lost, even if it is in a clustered env. It is simple with a stateless session bean as it dose not need state, in other words, Session.
The work around is to store the session to any persistence storage and retrive it back when the server is up or other server in the cluster is trying to service. Some app servers have such option.
I hope I have cleared your doubt.
|
|