Hai Andrew,

     If  i understood ur problem correctly, the follwing can be a solution.
    I think what u want to have is database cache in memory as java objects.

     You can have DataBase class which consists of methods for dealing with
database functions.
    Assuming that ur database is only updated through ur servlets, ur  DataBase
class will
    have  the  methods for loading the data from database & updating the cache
objects,
    whenever any change made to the records in the database.
    An object of that class can be created in one of the main servlet of ur web
application. It could
     be the authenticating servlet for example. And then u can access the
database object methods
     by getting the reference of the servlet object in which the DataBase is
the member variable.

    Regards,
    LakshmiNarayana M



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