The only problem I have seen with this design is depends on your
servletrunner's implementation of its "Servlet Classloader". It is possible
to get a "ClassCastException" on your
"MyOwnClass mc = (MyOwnClass)session.getvalue("myclass');"
if your "MyOwnClass.class" file is in the "Servlet" classpath rather than
the "System" classpath.
I know that IBM has fixed this in WebSphere 2.03 and 3.0. I don't know about
the other venders.
John Zerbe - Mellon Bank
IM&R - Middleware Team
Phone: 412-234-1048 E-Mail:[EMAIL PROTECTED]
> -----Original Message-----
> From: Manoj Thomas [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, December 02, 1999 8:25 PM
> To: [EMAIL PROTECTED]
> Subject: Session Tracking..
>
> Hi All,
>
> I need some help in Session tracking. I have created a session
> variable in
> one servlet and stored an object (My own class) in that session. If I use
> "session.getvalue('myclass')" in another servlet, whether it will return
> the
> previously stored object in the first servlet. Is there any defect in
> implementing this type of design?
>
> Thanks in advance..
> Manoj
>
> __________________________________________________________________________
> _
> 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
___________________________________________________________________________
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