>
> 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 ?

Try taking the classes pertaining to your obj_pers class
out of the repository directory and putting them into
the wrapper.classpath.  It sounds like all classes
loaded from the repository are getting lost when the
repository classloader refreshes itself.

If that doesn't work, I suggest you look at the jserv FAQ
at java.apache.org, and/or subscribe to the JServ mailing
list.

- Fernando

>
>
> --- 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

Reply via email to