I'm not sure what app server you are using, but some
(including WebLogic) allow for "startup" classes.
These are classes that will be instantiated when the
server is started. You could identify your class as a
startup class and then store it in the proper scope.
Then call RequestUtils.lookup(...) to retrieve it
whenever you need it.

--- Larry Hytail <[EMAIL PROTECTED]> wrote:
> 
> I have a table of information contained in a backend
> database.  The table is not very big and never will
> be.  I would like to create an object that holds the
> values from this table.  I would like this object to
> instantiate when the struts webapp is started.  Then
> I would like to be able to access this object from
> any Action object within my struts application. 
> Questions:
> 
> 1) Where is the best place to put the instantiation
> of this object?
> 
> 2) How do I get a handle on the object from the
> Action object?
> 
> Larry Hytail
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, and
more


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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

Reply via email to