-
1. Re: Common Beans???
kaobe Nov 27, 2006 10:42 AM (in response to pander)Hi,
you could use the Scheduler MBean to schedule a little module that gets this data and puts it in the JBoss Cache. Information on how to do this is offered in the JBoss documentation. From your System code you could then lookup the cache and get the information you need. If you don't like using the scheduler, you could even do it the first time the information is needed and populate the cache with your information. Following calls would just have to lookup the cache and get the information.
Peter -
2. Re: Common Beans???
peterj Nov 27, 2006 12:08 PM (in response to pander)First, please do not post the same question on multiple forums.
You could store the beans in the servlet context. For example, within doPost, you could have:
ServletContext ctx = this.getServletContext();
ctx.setAttribute("globalbean", bean);
and you can use getAttribute on the context to get it later.