2 Replies Latest reply on Mar 9, 2011 11:00 AM by Xiaoqing Zhu

    Camel NMR endpoint not published correctly?

    Xiaoqing Zhu Newbie

      I have a senario where a CXF-BC will expose a POX/JMS service. Following the instruction on this page  http://fusesource.com/docs/router/2.2/component_ref/_IDU_NMR.html, this is what I have in the OSGi bundle configuration file:

       

      -


           

      -


       

      When executing, the NMR complains that no matching endpoint can be found:

       

      -


      09:31:54,865 | WARN  | @qtp-355236854-1 | CxfBcComponent                   | ommon.endpoints.ConsumerEndpoint  184 | 96 - servicemix-common - 2010.02.0.fuse-02-00 | Target service (PersonServiceProxy) and endpoint (XmlJmsPort) specified, but no matching endpoint found.  Only the service will be used for routing.

      -


       

      I reviewed the above link and this statement turned out to be not true with my case. The documentation said that

       

      "The following code: from("nmr:endpoint:http://foo.bar.org/MyService/MyEndpoint") Automatically exposes a new endpoint to the bus, where the service QName is http://foo.bar.org}MyService and the endpoint name is MyEndpoint"

       

      However in my case, the camel route put in an endpoint with the following name instead:

       

      endpoint:http://swim.faa.gov/prototype/messaging/PersonServiceProxy/XmlJmsPort

       

      As seen from JConsole and from the log:

       

      -


      09:30:09,687 | INFO  | xtenderThread-20 | ManagementEndpointRegistry       | ement.ManagementEndpointRegistry  129 | 89 - org.apache.servicemix.nmr.management - 1.3.0.fuse-02-00 | Registering endpoint: org.apache.servicemix.nmr.core.InternalEndpointWrapper@c10542c1 with properties {CHANNEL_SYNC_DELIVERY=false, NAME=endpoint:http://swim.faa.gov/prototype/messaging/PersonServiceProxy/XmlJmsPort}

      09:30:09,689 | INFO  | xtenderThread-20 | DefaultCamelContext              | e.camel.impl.DefaultCamelContext  956 | 74 - org.apache.camel.camel-core - 2.4.0.fuse-02-00 | Route: XmlJmsServiceProxyRoute started and consuming from: Endpoint \[nmr://endpoint:http://swim.faa.gov/prototype/messaging/PersonServiceProxy/XmlJmsPort\]

      -


       

      ServiceMix version is 4.3.0-fuse-03-00. Did I miss anything?

       

      Edited by: zhuxiaoqing on Mar 8, 2011 3:11 PM