Hi there,

I've come to the understanding that you can't use "global" objects in Java
if you're not doing it with RMI. (haven't looked into that yet) Another way
would be to store all "global" variables in the session object, but that
would be to duplicate a LOT of data. (out of memory would be a memory for
the server administrator... :) )

The scenario I got is that I wish to have global objects for language
translations, HTML templates, JavaScript's, CSS etc. There's the way of
having it in a database, but then there comes the penalty fee of database
connection and constant querying. In my dreams, these objects would be
loaded into memory once, and read (since all variables in the global objects
would be static/final) by the servlets producing the pages to the users.

Has anyone had the same approach? How did you get around this shortcoming of
Java?

Thanks!

Regards,
Gert

___________________________________________________________________________
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