File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes page 259. Session management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "page 259. Session management" Watch "page 259. Session management" New topic
Author

page 259. Session management

Arvind Mahendra
Ranch Hand

Joined: Jul 14, 2007
Posts: 1162
the note at the bottom
"FYI- this wouldn't work correctly if the app is distributed on multiple JVMs, because there is no way to keep the static variables in sync. If the class is loaded on more than on JVM, each class will have its own value for the static counter variable"

If the variables were instance variables then would this work?


I want to be like marc
Abhishek Pratap
Ranch Hand

Joined: Apr 14, 2006
Posts: 43
i think the same would be for instance variable. coz it talks abt each class on each JVM rather than migrating from one to another.

Also using instance variable will intialize it for 0 for each request.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: page 259. Session management