Do you use web.xml at all ?
Without it, multiple jaxrs:endpoint with the same address would be
handled by a default CXF HTTP Transport which has a dedicated CXFServlet
so indeed there will be a clash.
With web.xml you can have each WAB allocating its own
CXFServlet/Destinations. Is it Spring DM or Blueprint ?
Sergey
On 04/11/14 10:25, Srikanth Hugar wrote:
Lets say i have two REST Web Application Bundles. one with path
"/css/logger" and another with path "/css/dc"
When i want to convert as WAB, i may configure something like below:
war1
<Web-ContextPath>/css/dc</Web-ContextPath>
war2
<Web-ContextPath>/css/logger</Web-ContextPath>
But my existing bundles have something like below with JAX-RS
<jaxrs:server id="logServices" address="/css/dc">
.............................
</jaxrs:server>
<jaxrs:server id="logServices" address="/css/logger">
.............................
</jaxrs:server>
If i change path to "/" as mentioned below in both WAB, it fails with same
address error which is expected.
<jaxrs:server id="logServices" address="">
.............................
</jaxrs:server>
How do i configure my WAB's in above mentioned scenario?
Srikanth Hugar
www.gharki.com
On Tue, Nov 4, 2014 at 3:42 PM, Sergey Beryozkin <sberyoz...@gmail.com>
wrote:
Hi
On 04/11/14 09:50, Srikanth Hugar wrote:
I have a existing multiple REST services with bundle using JAX-RS with
different addresses. Hence it works fine because in JAX-RS address i
specify the different addresses.
But now i want to convert my bundles to WAB because i want to integrate
with spring security and want to run with different Web-Connectors.
When i convert the bundles to WAB by specifying the Web-ContextPath
and Web-Connectors.
But now i have to change the JAX-RS address to "/" or something, this will
surely fail because of same address.
Anybody tried this combination earlier? If yes, how to use JAX-RS along
with WAB?
Are you referring to a Web Application Bundle approach ? Yes, I tried it
with both Spring DM and Blueprint. Can you clarify what path conflicts are
you referring to, type some example please
Cheers, Sergey