• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cross Context sharing of Objects

 
Stephen Callaghan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic