tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mr Peter Santos <>
Subject re:What is most efficient way to bind db configuration data to an app context
Date Tue, 30 Sep 2003 18:32:12 GMT
I'm building an application that uses some
configuration data in database tables.
My servlet/jsps will use this data to populate 
drop-down lists, radio button etc.

I'm trying to avoid making a database connection
everytime a user visits a page with config data.  
My goal is to load all config data from the database
when the application comes up (tomcat), then reference
the config data through some method without having to 
make db calls...
(I'm planning on use connection pooling to avoid the
cost of creating new connections)
What is the most efficient way of binding this
configuration data to an application? and is this

I'd also like to have an "admin" page where an
administrator can change the config, and have the
changes show up on my drop-down lists immediately.

I'd like to do it without bouncing tomcat if possible.
Any suggestions would be appreciated.


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

View raw message