You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Filip Hanik <ma...@filip.net> on 2003/05/29 19:48:29 UTC
RE: Reloading class file without disturbing users?
your sessions will be serialized, saved and when restarted brought back into
memory.
filip
> -----Original Message-----
> From: Michael Muratet [mailto:mam@torchconcepts.com]
> Sent: Thursday, May 29, 2003 11:46 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Reloading class file without disturbing users?
>
>
> Greetings
>
> I haven't found the answer to this in the documentation.
>
> I have a jsp that invokes an instance of a java object. I would like to
> modify the java file and have the change take effect without
> interrupting any users that are on the system. If use the
> manager/reload?/path method to reload the application, will it interrupt
> any active sessions? (The documentation does say it will shut down the
> application. That sounds like the sessions die, but maybe they're
> handled at a higher level.)
>
> If I put reload=true in the context definition in server.xml, will the
> application then reload class files in the path /WEB-INF/classes when it
> detects there is a more current version? Or does this just apply to
> servlets and jsps?
>
> Thanks
>
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Reloading class file without disturbing users?
Posted by Vladimer Shioshvili <vs...@qrc.com>.
that all depends if he has it set to be serialized (by default they are
serialized).
but there is a chance of disturbing users if something that is stored in
the session is not serializable.
reloadable will indeed replace old version with new one, servlet once it
detects the changes. but using reloadable=true is not suggested in the
production mode (it takes some CPU time). but even this has a chance of
disturbing your users. (can't think of a good example, but there is a
chance of getting a null pointer exception).
At 01:48 PM 5/29/2003, you wrote:
>your sessions will be serialized, saved and when restarted brought back into
>memory.
>
>filip
>
> > -----Original Message-----
> > From: Michael Muratet [mailto:mam@torchconcepts.com]
> > Sent: Thursday, May 29, 2003 11:46 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Reloading class file without disturbing users?
> >
> >
> > Greetings
> >
> > I haven't found the answer to this in the documentation.
> >
> > I have a jsp that invokes an instance of a java object. I would like to
> > modify the java file and have the change take effect without
> > interrupting any users that are on the system. If use the
> > manager/reload?/path method to reload the application, will it interrupt
> > any active sessions? (The documentation does say it will shut down the
> > application. That sounds like the sessions die, but maybe they're
> > handled at a higher level.)
> >
> > If I put reload=true in the context definition in server.xml, will the
> > application then reload class files in the path /WEB-INF/classes when it
> > detects there is a more current version? Or does this just apply to
> > servlets and jsps?
> >
> > Thanks
> >
> > Mike
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
________________
Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org