The Session Object


Web tier: servlets, JSP, Web frameworks: The Session Object

  1. The Session Object (6 messages)

    Hi Everybody,

    I am working on an application of JSP/Servlet with Weblogic 5.1.0. To remember the state(name, Id etc) I maintain a customer Object in the session of JSP/Servlet. Sometimes, It works fine sometimes but other times it says the Customer class not found. But if when i restart the Weblogic Server, it works fine again.

    Can anybody tell me that are there any consistent ways to maintain the Session Object OR any other ideas.


    Threaded Messages (6)

  2. The Session Object[ Go to top ]

    You may wanna check the timeout value on your Session. Increase the timeout value and see if it works for your app.
    You may also wanna check for condition (session.getValue(parm)!= null) before processing the session info.
  3. The Session Object[ Go to top ]

    Another thing to check is that your Customer object extends Srializable.

    We have found inconsistent errors when one of the objects we were putting in the session was not.
  4. The Session Object[ Go to top ]

    Can Timeout value be increased in
    or in the code it self????
    how to do this???
    B.T.W , I am having a ClassCastException.
  5. The Session Object[ Go to top ]

    you could try out two things here

    1)Change the
    weblogic.httpd.http.keepAliveSecs =
    weblogic.httpd.https.keepAliveSecs =
     this would keep the request alive for more time as far as the web server is concerned.

    2)use the method setMaxInactiveInterval(int intervalInSeconds) on your session object in your program .

    I have not tried them out myself. Do let me know if they work out.

  6. The Session Object[ Go to top ]

    Thank You suresh,
    But this does not helps.
    I have seen the doc. of weblogic about "Setting up Weblogic as http Server". This article has some good ideas about it.
  7. The Session Object[ Go to top ]

    you can increase the timeout seconds by including the following line in your file