1 Reply Latest reply on Mar 3, 2011 4:06 AM by Freeman(Yue) Fang

    cxf osgi to jbi via nmr

    Massimiliano Andriotto Newbie

      I have a osgi cxf component that exposes a web service. I want to send some data from this component to a JBI SE component using NMR. How can access the nmr bus?

       

      This is my jaxws endpoint:

           <jaxws:endpoint id="HTTPEndpoint"

               implementor="org.apache.servicemix.example.PersonImpl"

               address="/PersonService"

               wsdlLocation="wsdl/person.wsdl"

               endpointName="e:soap"

               serviceName="s:PersonService"

               xmlns:e="http://servicemix.apache.org/samples/wsdl-first"

              xmlns:s="http://servicemix.apache.org/samples/wsdl-first"/>

       

      How to iniect a NMR reference?

       

      Thank you

      Massimiliano

        • 1. Re: cxf osgi to jbi via nmr
          Freeman(Yue) Fang Master

          Hi,

           

          We have a nmr example shipped with kit demonstrate this.

          endpoint module in this example shows how to publish an nmr endpoint.

          client module in this example show how to inject nmr(osgi service reference) into your client bean and invoke through nmr.

           

          For your scenario, you just need inject nmr into your PersonImpl class, from which you can invoke another nmr endpoint.

           

          Freeman