Hi,
Per the doc[1], the expect nmr URI is
nmr:endpointName, so if you use <camel:from uri="nmr:endpoint:http://planetsoft.com/picf2/sendMsg
"/>
the endpointName is endpoint:http://planetsoft.com/picf2/sendMsg, but
from your http consumer, the target endpointName is "endpoint"(same as
the endpoint if you don't specify a targetEndpoint), I believe this
mismatch cause such exception you saw, and that's why I suggest you use
<camel:from
uri="nmr:endpoint>
in my previous answer.
Did you ever try it and if it works?
[1]http://camel.apache.org/nmr.html
Freeman
On 2011-7-5, at 下午10:02, pchakinala wrote:
Hi Freeman,
Thanks for the update. As you suggested I have checked servicemix
log file
and found below msg.
19:23:42,375 | DEBUG | ExtenderThread-6 |
DefaultComponent |
68 - org.apache.camel.camel-core - 2.6.0 | Creating endpoint
uri=[nmr://endpoint:http://planetsoft.com/picf2/sendMsg],
path=[endpoint:http://planetsoft.com/picf2/sendMsg], parameters=[{}]
19:23:42,390 | DEBUG | ExtenderThread-6 |
OsgiSpringCamelContext |
68 - org.apache.camel.camel-core - 2.6.0 |
nmr://endpoint:http://planetsoft.com/picf2/sendMsg converted to
endpoint:
Endpoint[nmr://endpoint:http://planetsoft.com/picf2/sendMsg] by
component:
org.apache.servicemix.camel.nmr.ServiceMixComponent@1b2fb88
19:23:42,437 | DEBUG | ExtenderThread-6 |
DefaultManagementAgent |
68 - org.apache.camel.camel-core - 2.6.0 | Registered MBean with
objectname:
org.apache.camel:context=PraveenChakinala/251-
camel-3,type=endpoints,name="nmr://endpoint:http://planetsoft.com/picf2/sendMsg
"
As per my understanding endpoint uri is :
http://planetsoft.com/picf2/sendMsg
Http endpoint calls above camel uri to post the msg.
<http:endpoint service="picf:httpExportTransmit"
endpoint="endpoint"
targetService="picf:sendMsg"
targetEndpoint="sendMsg"
role="consumer"
locationURI="http://0.0.0.0:8192/manuTransmit/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-only" />
camel uri:
--------
<camel:from uri="nmr:endpoint:http://planetsoft.com/picf2/sendMsg"/>
Exception:
{http://planetsoft.com/picf2}httpExportTransmit:endpoint
javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@cb531c
javax.jbi.messaging.sendSync = <null>
javax.jbi.InterfaceName = <null>
org.apache.servicemix.correlationId =
cdb22c98-9573-4456-9fbf-4949d89a7cb9
javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
]
]
org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch
exchange. No matching endpoints.
Attached servicemix log for your reference.Is there any issue in http
targetservice attribute?
Regards,
Praveen Chakinala
http://servicemix.396122.n5.nabble.com/file/n4553353/servicemix.log
servicemix.log
--
View this message in context:
http://servicemix.396122.n5.nabble.com/camel-nmr-endpoint-Servicemix-4-x-tp4552746p4553353.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