File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Session Invalidated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Invalidated" Watch "Session Invalidated" New topic

Session Invalidated

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Why does the session expires after compling a Java Class file.
In Weblogic Server i am using "AUTO DEPLOY" to reflect the changes of EJB. So when i am compiling a Java Class File the Session is getting expired and bcoz of that i have to built the Session again. Is there any soln for this.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

In a normal production environment, classes are not being compiled and changed on the fly. Once your code reaches a point where you are not recompiling every n minutes, then your session will become more stable.

Having said that, I'm not sure this is the real reason. I'm just speculating that when classes are changed, that Weblogic will kill any sessions due to class casting/serialization/versioning concerns.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
Thanks! and welcome to the JavaRanch!

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Session Invalidated
It's not a secret anymore!