You can even use the same class with both sets of annotations and declare a
jaxws endpoint and jaxrs server ref the same impl

Sent from my Android phone
On 20/11/2013 2:37 PM, "Jason Wang" <[email protected]> wrote:

> Daniel, I got quite a few Restful services and WS live in the same maven
> module. Some of them share the same common request and response objects and
> exception classes.
> I dont think you need to do anything special to make they work.
>
> Cheers,
>
>
> On Wed, Nov 20, 2013 at 2:12 PM, Aaron Titus <[email protected]> wrote:
>
> > I'm not sure if I understand 100% what you are trying to do, but it
> sounds
> > like this:
> >
> > http://cxf.apache.org/docs/jax-rs-and-jax-ws.html
> >
> > Does that page answer the question?
> >
> >
> >
> >
> > On Tue, Nov 19, 2013 at 6:39 PM, daniel williams
> > <[email protected]>wrote:
> >
> > > Hi,
> > >
> > > I'd like to host several services under the same Apache CXF Server.
>  I'd
> > > like to host a few JAX-WS and JAX-RS services.  Is this possible?  I'll
> > > also need to handle this programmatically.
> > >
> > > My thoughts were to create varying JaxWsServerFactoryBean for each
> JAX-WS
> > > service to be exposed over a different path (same bind port), and then
> > use
> > > the JAX-RS analog.  However, looking at the Jax-Rs documentation, it
> says
> > > that Apache CXF is dependent upon Jetty so I'm not sure that this
> > approach
> > > would work.
> > >
> > > Any suggestions and/or code samples would be very helpful.
> > >
> > > Thanks.
> > >
> > > Dan
> > >
> >
>

Reply via email to