There are several possible ways to do this. One easy way is to provide a
static factory class that your servlet calls to get access to a data
object. The first time a particular type of data is accessed, the
factory
creates and caches a data object. On subsequent calls it just returns
the
cached object.

HTH,

Rod McChesney, Korobra

Andrew Dickson wrote:
>
> Hello,
>
> I am working on programming a web front end for a database using
> servlets. My problem is that I would like to have some java objects that
>
> load the data so that it can be accessed quickly by servlet calls,
> rather than having to read and parse the data files each time. However,
> I can't think of a way to have the servlet objects get access to the
> data objects that are loaded. Is there a way to somehow register the
> objects with the system? Any suggestions or thoughts on ways to approach
>
> this problem would be much appreciated.
>
> Thanks,
> Andrew Dickson
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to