Re: [OT] static vs. application scope

2002-11-04 Thread Craig R. McClanahan
On Sat, 2 Nov 2002, Max Kremer wrote: > Date: Sat, 2 Nov 2002 13:57:36 -0500 > From: Max Kremer <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Re: [OT] stati

Re: [OT] static vs. application scope

2002-11-03 Thread Steve Gass
2:58 > To: Struts Users Mailing List > Subject: Re: [OT] static vs. application scope > > > In my application I use the singleton pattern to cache information > which is globally accessible. You can invoke the singleton in the > init method of a servlet which is loaded on start

RE: [OT] static vs. application scope

2002-11-02 Thread Andrew Hill
02:58 To: Struts Users Mailing List Subject: Re: [OT] static vs. application scope In my application I use the singleton pattern to cache information which is globally accessible. You can invoke the singleton in the init method of a servlet which is loaded on startup. This way you have one

Re: [OT] static vs. application scope

2002-11-02 Thread Max Kremer
: "Sri Sankaran" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, November 02, 2002 11:39 AM Subject: RE: [OT] static vs. application scope Sure, good point. What I was trying to establish was the difference in *availability*

RE: [OT] static vs. application scope

2002-11-02 Thread Sri Sankaran
t: RE: [OT] static vs. application scope It's not going to be available to anything outside its class with the stated signature, static or not. Mark -Original Message- From: Sri Sankaran [mailto:Sri.Sankaran@;sas.com] Sent: Friday, November 01, 2002 4:45 PM To: Struts-User Subject:

RE: [OT] static vs. application scope

2002-11-02 Thread Galbreath, Mark
It's not going to be available to anything outside its class with the stated signature, static or not. Mark -Original Message- From: Sri Sankaran [mailto:Sri.Sankaran@;sas.com] Sent: Friday, November 01, 2002 4:45 PM To: Struts-User Subject: [OT] static vs. application scope Wh

RE: [OT] static vs. application scope

2002-11-02 Thread Andrew Hill
atic member. -Original Message- From: David Graham [mailto:dgraham1980@;hotmail.com] Sent: Saturday, November 02, 2002 05:48 To: [EMAIL PROTECTED] Subject: Re: [OT] static vs. application scope One difference is that business objects (or non-web objects) can get to the static data but

Re: [OT] static vs. application scope

2002-11-01 Thread David Graham
One difference is that business objects (or non-web objects) can get to the static data but not the application context. David From: "Sri Sankaran" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts-User" &

[OT] static vs. application scope

2002-11-01 Thread Sri Sankaran
What is the difference between making a property available in application scope as opposed to making it static to a class? As a simple (contrived) example, I want to maintain a mapping of car model and manufacturer. This being, un-changing I could implement it as a static property of some clas