I'm talking about objects like this...
HttpSession ses = req.getSession(true);
obj_pers curTrans=
(obj_pers) ses.getValue(lv_session.getId());
if(curTrans==null)
{
curTrans = new obj_pers();
ses.putValue(ses.getId(),curTrans);
}
when i'am reloading classes the persistence objects
will dead...and the connected users will fail...
how i deal with this situation ?
--- Fernando Salazar <[EMAIL PROTECTED]> escribi�:
>
>> First of all i use session tracking in my servlets...
>> Every time i change a servlet's class or zone properties file it
>> may cause JServ to reinitialize the servlet. This will discard
>> all session data maintained by the servlet...
>> Then this will generate problems to all the connected users...
>> how can i avoid this problem ???????????????
>> thanks for your help
>
>The session objects are "owned" by the servlet engine, not
>individual servlets. Unloading and then reloading a servlet
>has no effect on sessions. Of course, if you're talking about
>objects that your servlet creates and stores in a table that *it*
>owns, that's another story.
>
>- Fernando
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
------------------------------------------------------------------------------------
Obtenga su direcci�n de correo gratuita en http://serverlx.gye.ramt.com/servlets/mail
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html