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/mySecondApp/mySecondAppServlet I may be confusing his original request, to share 'objects'. I assumed that he wanted to combine two contexts. 2008/5/19 Zdeněk Vráblík <[EMAIL PROTECTED]>: > 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 case? > > Regards, > Zdenek > > 2008/5/19 william kinney <[EMAIL PROTECTED]>: > > 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 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... > >> > > >> > 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 start a new topic, e-mail: users@tomcat.apache.org > >> > To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > For additional commands, e-mail: [EMAIL PROTECTED] > >> > > >> > > >> > >> --------------------------------------------------------------------- > >> To start a new topic, e-mail: users@tomcat.apache.org > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > >