[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Common Beans???

pander do-not-reply at jboss.com
Mon Nov 27 04:38:23 EST 2006


Hi, 

Not sure if this is the correct place to post this but hopefully someone on here will know the answer or be able to offer some good advice. 

In my WebApp I am using the DatabaseServerLoginModule to login my users and also perform some custom processing during the login process.... for example, if the login is validated a database query is made to grab the users' account details and setup that data within the users' session. It is during this login custom processing that I also query the database to grab some data from some lookup tables.... for example, I have tables which hold data on ISO Country codes and Descriptions, Salutations, Timezones, Languages etc. The data from these lookup tables is used to populate form fields such as drop-down boxes on the front end JSP's. 

At present, and I'm sure this must be the wrong way to do this, each user that logs in gets this information setup within their own session. The question I am hoping someone can answer is whether or not there is a way to setup "Common Beans" for your WebApp when the JBOSS starts up? All of the lookup tables I am using are totally generic and do not rely on a users ID or any other user specific data to build the lookup query...they should really only be called/queried once, perhaps when the server starts up or the WebApp is deployed, and be available to be used by any user. 

Any help would be greatly appreciated. 

Kind Regards, 
Paul. 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988761#3988761

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988761



More information about the jboss-user mailing list