Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sevlet ClassLoading Question

843841Dec 13 2007
I have a Servlet that keeps a reference to an instance of a Singleton class that does something when the servlet is created and when the servlet is destroyed. Also that servlet class has the doService method available to get some information about the singleton but whenever I call that method (Using a url GET method) the Singleton is created again like it wasn't loaded from the Servlet's init method but I can see from the logs files that it was. Am I missing something?

Thanks,

Johann
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2008
Added on Dec 13 2007
0 comments
104 views