Re: Can different webapps share a context?

2008-05-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dola, Dola Woolfe wrote: | I have two different webapps and I want them to be | able to share objects. Can that be done? I guess it | sounds like an FAQ but I can't find the answer. That depends on what you mean by "share" and "context". If you jus

Re: Can different webapps share a context?

2008-05-19 Thread william kinney
You have one context, with both applications inside the same war, and with any of the second application's requests, you simply map them to a subdirectory context. E.g. myApp.war: /myApp/myServlet /myApp/mySecondApp/mySecondAppServlet mod_rewrite requests @ /myApp/mySecondAppServlet to /myApp/mySe

Re: Can different webapps share a context?

2008-05-19 Thread Zdeněk Vráblík
Hi William, could you describe how could be shared two object over Apache server? I have understood the question a bit different. Dola could you describe what do you mean share two objects between two web aps? It is inside one jvm or it is between two jvm instances? Could you describe your use

Re: Can different webapps share a context?

2008-05-19 Thread william kinney
I believe also mod_rewrite will work as well, if you allowed to put apache in front. http://httpd.apache.org/docs/2.0/misc/rewriteguide.html On Mon, May 19, 2008 at 8:08 AM, Zdeněk Vráblík <[EMAIL PROTECTED]> wrote: > Hi, > > I would use session for sharing user object and > I would move common

Re: Can different webapps share a context?

2008-05-19 Thread Zdeněk Vráblík
Hi, I would use session for sharing user object and I would move common classes/jars from WEB-INF/lib into $TomcatHome/shared/lib Use webservcies may be slow. Regards, Zdenek On Mon, May 19, 2008 at 3:48 AM, Dola Woolfe <[EMAIL PROTECTED]> wrote: > Hi, > > I guess the subject asks the question

Re: Can different webapps share a context?

2008-05-18 Thread Andre Prasetya
Another way is to setup a webapps that will act as a broker, communications via web service, if you use spring framework, you can use its remoting feature, or you can use axis/xfire for its web service. -andre- Aleksandar Matijaca wrote: I've had to do this a few times in my life - never easy

Re: Can different webapps share a context?

2008-05-18 Thread Aleksandar Matijaca
I've had to do this a few times in my life - never easy... One way is to use an in-memory database like hsqldb - ( http://hsqldb.org/ ) - and what you do here is one context sticks an object with a key into the database, and the other context picks it up from the hsqldb - both "listen" in on a soc

Can different webapps share a context?

2008-05-18 Thread Dola Woolfe
Hi, I guess the subject asks the question... I have two different webapps and I want them to be able to share objects. Can that be done? I guess it sounds like an FAQ but I can't find the answer. Thanks! Aaron - To