java - Same initial context for multiple wars in tomcat -


i have 3 separate wars in tomcat , each war contains restful services, there different clients in wars calling services example servlet maping in war1 is

 <servlet-mapping>     <servlet-name>servlet</servlet-name>     <url-pattern>/services/*</url-pattern>   </servlet-mapping> 

access url localhost:8080/projectname/services/someservice

similarly in war2

<servlet-mapping> <servlet-name>servlet2</servlet-name> <url-pattern>/postprocessorservices/*</url-pattern> </servlet-mapping> 

access url localhost:8080/differentprojectname/postprocessorservices/someotherservice

i want know there way provide common initial context same initial context used in different client example

localhost:8080/commoncontext/services/someservice localhost:8080/commoncontext/postprocessorservices/someotherservice 

any appreciated.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -