The Singleton pattern may be useful if the object will be shared across
sessions.

Sincerely,

Shane Witbeck
Web Application Developer, Bank of America
904.987.1688

-----Original Message-----
From: Bomb Diggy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 3:06 PM
To: [EMAIL PROTECTED]
Subject: Global application object?


Hi,

I'd like to load up an global application object (say
reference it from the ServletContext somehow) with a
collection of data objects I wish to render on my JSP.
 What might be a strategy for doing this?  Do I have
to use another servlet just to load my global object? 
Ideally I only want the code to run once, and then the
data will be available via regular methods, like
[GlobalClassInstance].getCollectionOfPersonObjects()...
 The data will be pulled from the database with a
simple SELECT statement.

Any advice is appreciated...



__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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

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

Reply via email to