1 Reply Latest reply on Nov 5, 2007 10:55 AM by Daniel Kulp

    Mulitple protocols on one impl?

    unknown user Newbie

      Hi,

       

      Can I have a single impl instance running in cxf that supports multiple transports at the same time (i.e. soap/http and jms), or do they need to be seperate instances of the service?

       

      This applies to both server mainlines and spring deployments.

       

      Thanks.

        • 1. Re: Mulitple protocols on one impl?
          Daniel Kulp Newbie
          inetmug wrote:

          Hi,

           

          Can I have a single impl instance running in cxf that supports multiple transports at the same time (i.e. soap/http and jms), or do they need to be seperate instances of the service?

           

          This applies to both server mainlines and spring deployments.

           

          Thanks.

           

          Yes.    Spring is actually a little bit easier.    You can define a bean using a normal

          etc...

           

           

          For mainline, you CAN do it, but it's a bit harder as the annotations have a tendency to "win" and you need to do more coding around it.  Instead of calling Endpoint.publish directly, you would need to create a JaxWsServerFactoryBean, make calls on it to configure it, then call sfb.create().start();

           

          Daniel Kulp

          daniel.kulp@iona.com