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] static vs. application scope
In my application I use
: 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 instance of the object in the JVM
Regards
-
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 not the application context.
David
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
What is the
] 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: [OT] static vs
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*. In the proper context, both a static
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 instance
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 [EMAIL PROTECTED]
Subject: [OT] static vs. application scope
8 matches
Mail list logo