Hi,

When you deploy your camel router, you should be able to see some log about the NMR endpoint registration in data/log/servicemix.log, where can give you hint that what the target service/endpoint name in http consumer should be.

Take a look at [1] to get more details about what the nmr URI should be.

You can try it with
   <camel:from
uri="nmr:endpoint>

[1]http://camel.apache.org/nmr.html

Freeman
On 2011-7-5, at 下午6:48, pchakinala wrote:

Hi Freeman,
After changing it to   <camel:from
uri="nmr:endpoint:http://planetsoft.com/picf2/sendMsg"/> also got same
exception

16:15:07,406 | INFO | - /manuTransmit/ | AnnotationTypeConverterLoader |
68 - org.apache.camel.camel-core - 2.6.0 | Loading file
META-INF/services/org/apache/camel/TypeConverter to retrieve list of
packages, from url:
bundle://68.0:1/META-INF/services/org/apache/camel/TypeConverter
16:15:07,421 | DEBUG | - /manuTransmit/ | DefaultPackageScanClassResolver | 68 - org.apache.camel.camel-core - 2.6.0 | Searching for annotations of org.apache.camel.Converter in packages: [org.apache.camel.component.file,
org.apache.camel.component.bean, org.apache.camel.converter]
16:15:07,421 | DEBUG | - /manuTransmit/ | DefaultPackageScanClassResolver |
68 - org.apache.camel.camel-core - 2.6.0 | Found: []
16:15:07,421 | DEBUG | - /manuTransmit/ | NMR |
83 - org.apache.servicemix.nmr.core - 1.4.0 | Channel
org.apache.servicemix.nmr.core.ChannelImpl@fd9691 dispatching exchange: [
 id:        5e83134e-3735-410a-be60-b035fb680e17
 mep:       InOnly
 status:    Active
 role:      Consumer
 target:
PropertyMatchingReference[{SERVICE_NAME={http://planetsoft.com/ picf2}sendMsg}]
 properties: [
     org.apache.servicemix.senderEndpoint =
{http://planetsoft.com/picf2}httpManuTransmit:endpoint
     javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@173d391
     javax.jbi.messaging.sendSync = <null>
     javax.jbi.InterfaceName = <null>
     javax.jbi.transaction.jta = <null>
     org.apache.servicemix.correlationId =
5e83134e-3735-410a-be60-b035fb680e17
     javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
 ]
]

16:15:07,421 | WARN | - /manuTransmit/ | NMR | 83 - org.apache.servicemix.nmr.core - 1.4.0 | Error processing exchange [
 id:        5e83134e-3735-410a-be60-b035fb680e17
 mep:       InOnly
 status:    Active
 role:      Consumer
 target:
PropertyMatchingReference[{SERVICE_NAME={http://planetsoft.com/ picf2}sendMsg}]
 properties: [
     org.apache.servicemix.senderEndpoint =
{http://planetsoft.com/picf2}httpManuTransmit:endpoint
     javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@173d391
     javax.jbi.messaging.sendSync = <null>
     javax.jbi.InterfaceName = <null>
     javax.jbi.transaction.jta = <null>
     org.apache.servicemix.correlationId =
5e83134e-3735-410a-be60-b035fb680e17
     javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
 ]
]

org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch
exchange. No matching endpoints.
        at
org .apache .servicemix.nmr.core.FlowRegistryImpl.dispatch(FlowRegistryImpl.java: 110)[83:org.apache.servicemix.nmr.core:1.4.0]
        at
org.apache.servicemix.nmr.core.ChannelImpl.dispatch(ChannelImpl.java: 286)[83:org.apache.servicemix.nmr.core:1.4.0]
        at
org.apache.servicemix.nmr.core.ChannelImpl.send(ChannelImpl.java:117) [83:org.apache.servicemix.nmr.core:1.4.0]
        at
org .apache .servicemix .jbi.runtime.impl.DeliveryChannelImpl.send(DeliveryChannelImpl.java: 178)[122:org.apache.servicemix.jbi.runtime:1.4.0]
        at
org .apache .servicemix .common.EndpointDeliveryChannel.send(EndpointDeliveryChannel.java:89) [121:servicemix-common:2011.01.0]
        at
org .apache .servicemix .http.processors.ConsumerProcessor.process(ConsumerProcessor.java: 177)[162:servicemix-http:2011.01.0]
        at
org .apache .servicemix.http.HttpBridgeServlet.service(HttpBridgeServlet.java:56) [162:servicemix-http:2011.01.0]
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:668) [93:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 390)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org .mortbay .jetty .handler .ContextHandlerCollection.handle(ContextHandlerCollection.java:230) [94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org .mortbay .jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [94:org.apache.servicemix.bundles.jetty:6.1.25.1]


It worked fine with JBI Endpoint  <camel:from
uri="jbi:endpoint:http://planetsoft.com/picf2/sendMsg/endpoint"/>

However as per my requirment i should use nmr endpoint.


Please suggest.
Regards,
Praveen Chakinala

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/camel-nmr-endpoint-Servicemix-4-x-tp4552746p4552850.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to