EJB programming & troubleshooting: Sharing in-memory objects between two web apps on Tomcat 5.5
Hi, We had a single web application which handled a visitor portal and an agent portal. We separated out the visitor portal and services into different web applications on the same application server. I need to set something in memory by one application and have the other application pick it up. We are using an in-memory cache to store these in-memory data structures. How can we access the in-memory data structures from the other webapp. It should be possible since they are in the same JVM that Tomcat is executing. We are using Struts2 for the frontend and Spring beans for the services and backend. Could any of the Tomcat/app server Gurus recommend how to solve this problem. Thanks!!
- Posted by: Nirupama Mallavarupu
- Posted on: March 31 2008 12:23 EDT
- Sharing in-memory objects between two web apps on Tomcat 5.5 by vivek singh on April 02 2008 06:47 EDT
- Re: Sharing in-memory objects between two web apps on Tomcat 5.5 by guddu sk on April 04 2008 00:51 EDT
you share the context within the same tomcat container.... Make changes in server.xml .... using crossContext="true"
Hi, I think one can try using database for storing some data that can be shared across web application, if all web application uses the same database. Thanks, Guddu http://freesourceutilityhelp.googlepages.com