Same, if you code it correctly.

--mikej
-=-----
mike jackson
[EMAIL PROTECTED] 

> -----Original Message-----
> From: Luc Foisy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 11:26 AM
> To: Tomcat Users List
> Subject: RE: Loading Singleton Classes
> 
> 
> Hmmm
> 
> My jar is located in web-inf/lib
> 
> Perhaps I should rephrase that question.
> When I load the singleton class, will it be the same singleton 
> called from all sessions or will it be unique to each session?
> 
> > -----Original Message-----
> > From: Filip Hanik [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 20, 2003 2:15 PM
> > To: Tomcat Users List
> > Subject: RE: Loading Singleton Classes
> > 
> > 
> > it doesn't become a variable at all.
> > 
> > but to answer your question, if you load a singleton class it 
> > all depends on where the class is in the classloader hierarchy.
> > 
> > if you put the class in a jar in common/lib, the singleton 
> > will be for your entire tomcat server. if you put it in a jar 
> > in web-inf/lib it becomes a singleton class for your webapp only.
> > 
> > Filip
> > 
> > -----Original Message-----
> > From: Luc Foisy [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 20, 2003 11:14 AM
> > To: Tomcat User List (E-mail)
> > Subject: Loading Singleton Classes
> > 
> > 
> > 
> > If I load a singleton class, does it become a session 
> > variable or an application variable????
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to