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
Post a Comment