Hmm.. are the singleton class files in the reloadable class path, or does
iPlanet have such a concept? We ran into problems with JRun in the early
stages of development when we had non-servlet singleton files in the
reloadable classpath.
If this is true with iPlanet in general, it sounds like a big problem.
Certain system-type services (like custom logging, connection pooling, etc.)
are easy to implement as singletons, especially since there's no way I know
of to load code into the app server's JVM except via servlet initialization.
Michael
----- Original Message -----
From: James Dunn <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 02, 2000 12:00 AM
Subject: Weird iPlanet Problem
> Hello everybody,
>
> Here is my weird iPlanet problem. It seems like iPlanet's servlet
> engine creates a new instance of its class loader for each servlet that
> runs. This causes me problems because I use several "singleton" classes
> in my code. Because each servlet starts with its own separate class
> loader, each servlet gets its own separate instance of a singleton
> class, which causes me pain.
>
> In contrast JRun seems to only use a single class loader per jrun
> instance which means my singleton classes operate as designed.
>
> Has anyone else ever seen this problem before, or know a
> solution/workaround for it?
>
> Thanks,
>
> Jim
>
>
___________________________________________________________________________
> 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