This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Cross Context sharing of Objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Cross Context sharing of Objects" Watch "Cross Context sharing of Objects" New topic
Author

Cross Context sharing of Objects

Stephen Callaghan
Greenhorn

Joined: Feb 26, 2002
Posts: 12
I'm trying to allow one webapp in its own Context to reference an objects instance in another webapp (within the same tomcat container).
I've tried singleton pattern (since i thought it was the same VM it would be shared) and I've tried binding it to JNDI but no luck. The second webapp can never see the first live instance (i tried crossContext="true" in both Context tags too but no luck).
Do i have to go down the RMI or EJB route to achieve what I want? Its not that big a project and i'm not sure if i could sell the investment in time setting that up to the company.
Any help or pointers much appreciated.
btw, its an Admin Type webapp that is trying to see into the other webapps to display current status information for some specific information and allow operations like start/stop on a couple of objects.


==========================<br />Stephen Callaghan<br />SC Java Programmer<br />SC Java Developer<br />SC Web Component Developer<br />SC Enterprise Architect I
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cross Context sharing of Objects
 
Similar Threads
general strategies for seperating config from binary code
mapping a URL to a java class
Sharing Objects between Webapps
Warp engine and Resource
Sending Mail from closing servlet