I'am not talking about classes that i lost when i
reload my servlets...

I lost objects that i store in memory, that manage
the state of users between requests...
i just found a document in

http://www.magiccookie.com/computers/apache-jserv/#Class Path and Class Reloading

that talk about this situation...they suggest that i save
my objects in a permanent store before the reload of the
servlets, how i save objects in a permanent store ???

have somebody another solution ???

thanks for any help....



>
>> I'm talking about objects like this...
>>
>>   HttpSession ses = req.getSession(true);
>>   obj_pers curTrans=
>>    (obj_pers) ses.getValue(ses.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
>


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

Reply via email to