The 'manual' approach is only ~10 lines for each of the JAXWS and JAXRS
endpoints and lets you have whatever URLs you want.
Is CXF the only thing on appcontext or is there more there too?
i.e. can the CXF servlet listen on /appcontext?
Jim
On 15/08/2017 17:29, Sergey Beryozkin wrote:
I'd like to avoid introducing all this complexity into the relatively
simple starter code, it will add all these issues like what to do with
cxf.path if some custom servlet beans are available, or how to get some
context isolation, etc.
I believe the demos we had, before the starters were available, were
showing hot to 'manually' set up the JAXWS and JAXRS applications,
including the servlet and services, so if the default mode does not help
then there's always an option to do it as needed...
Sergey
On 15/08/17 17:19, David Karlsen wrote:
As I tried to put in the initial request - this is not an option.
Using old-style xml config it was quite straightforward as the context
file
for the jaxws/jaxrs layer is given as an init-param to each servlet
instance.
Maybe if the auto-configuration could look for servlet beans with
specific
names - and use these if given.
2017-08-15 17:29 GMT+02:00 Sergey Beryozkin <[email protected]>:
I believe the way to do it is to create two SpringVoot applications with
one having jaxws properties and another - jaxrs ones.
Sergey
On 15/08/17 15:58, David Karlsen wrote:
I want my co-existing services for JAXRS and JAXWS (e.g. same war) -
to be
on separate context paths:
http://server:port/appcontext/api (jaxrs)
http://server:port/appcontext/services (jaxws)
Looking at
http://cxf.apache.org/docs/springboot.html#SpringBoot-Spring
BootCXFJAX-RSStarter
http://cxf.apache.org/docs/springboot.html#SpringBoot-Spring
BootCXFJAX-WSStarter
this does not seem possible - as there is only one cxf servlet (and
using
the same property cxf.path etc)
It seems the boot stuff is not really usable if you are to have
JAXRS and
JAXWS services in the same app with distinct paths? Could they get
distinct
properties / be able to tie a given set to a given servlet-instance?
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/