Hi,

In your case, you can try to specify bundle2-symbolicname as MyApp, you can use 
maven-bundle-plugin/bnd tool to do it, so bundle2 publish web service at
http://localhost:8181/MyApp/cxf/xyzWs/Port
and bundle1 publish at
http://localhost:8181/MyApp/cxf/abcWs/Port
-------------
Freeman Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-10-10, at 上午5:00, nvtd4000 wrote:

> I have 2 bundles (their type are jar and war). Both of them are web services
> and working fine. 
> In SMX/etc/org.apache.cxf.osgi.cfg,i have
> org.apache.cxf.servlet.context=/MyApp/cxf.
> In bundle2's web.xml, i also set the context-path to cxf.
> 
> So: the URL for end point for bundle1 will be:
> http://localhost:8181/MyApp/cxf/abcWs/Port
> the URL for end point for bundle2 will be:
> http://localhost:8181/{bundle2-symbolicname}/cxf/xyzWs/Port
> 
> Now, my question is i want them have the same context, for example:
> /App/cxf. 
> Endpoint URL of both bundles should have format:
> http://localhost:8181/App/cxf/aaaWs/Port
> what should i do? (assume that i can not make bundle 2 becomes jar bundle,
> but i am able to modify the code)
> 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/web-context-for-both-jar-and-war-tp5714684.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to