Gert,

Yes, I've been mixing - that's because when using a JBI endpoint address, I
get an exception with "No endpoint, service or interface name specified for
routing"*).

The target camel route starts with a JBI URI:
<from
 
uri="jbi:endpoint:http://setools.t-systems.es/tsisb/TSB/FaultManagementService/V1/FaultManagementService/FaultManagementServicePortTsfEsProvTEP";
/>

The endpoint shows in the NMR list:
{http://setools.t-systems.es/tsisb/TSB/FaultManagementService/V1}FaultManagementService:FaultManagementServicePortTsfEsProvTEP

I send data to it via a ProducerTemplate, as described in
http://camel.apache.org/polling-consumer.html, and am not interested in the
response. The URIs I tried are:
<property
  name="faultManagementURI">
 
<!--<value>nmr:{http://setools.t-systems.es/tsisb/TSB/FaultManagementService/V1}FaultManagementService:FaultManagementServicePortTsfEsProvTEP?synchronous=true</value>
-->
 
<value>jbi:endpoint:http://setools.t-systems.es/tsisb/TSB/FaultManagementService/V1/FaultManagementService/FaultManagementServicePortTsfEsProvTEP</value>
</property>

The former results in a null body, the latter in "No endpoint, service or
interface name specified for routing". I also tried around with the
synchronous (NMR) and mep (JBI) options, but to no avail.

Do you have any other ideas what might go wrong?

We're using JBI endpoints for addressing of routes in order to be able to
use non-Camel SAs/SUs. From
http://servicemix.396122.n5.nabble.com/o-endpoint-service-or-interface-name-specified-for-routing-Camel-gt-JBI-td421027.html#a421028
I concluded NMR and JBI URIs would be equivalent.

Ciao, Philipp

*)
>>
...
15:39:36,031 | DEBUG | rovider-thread-2 | SendProcessor                    |
.camel.processor.SendProcessor$2  102 | 72 - org.apache.camel.camel-core -
2.4.0.fuse-02-00 | >>>>
Endpoint[endpoint:http://setools.t-systems.es/tsisb/TSB/FaultManagementService/V1/FaultManagementService/FaultManagementServicePortTsfEsProvPEP]
Exchange[Message: <?xml version="1.0" encoding="UTF-8"?><ns2:SendFaults
xmlns:ns2="http://setools.t-systems.es/tsisb/TSB/FaultManagementService/V1";
xmlns="http://setools.t-systems.es/tsisb/BUO/Commons/V1";><ns2:SendFault><Fault><FaultIdentifier><FaultUID>urn:uuid:114708f1-485b-452e-a025-492e330a3197</FaultUID><DataReference>urn:uuid:838b1d29-c897-4cff-88b1-fd9091ce57a5</DataReference><FaultSystem>tsb:UNKNOWN.SYSTEM</FaultSystem><FaultCode>CAM.0002</FaultCode></FaultIdentifier><FaultClass>System</FaultClass><Criticality>ERROR</Criticality><FaultInstant>2011-02-09T15:39:35.875+01:00</FaultInstant><FaultTrace>es.gedasgrp.framework.services.FwkServicesRuntimeException

        at
es.gedasgrp.framework.services.FwkServicesExceptionUtil.getFwkServicesException(FwkServicesExceptionUtil.java:31)

        at
es.gedasgrp.framework.services.FwkServicesExceptionUtil.getFwkServicesException(FwkServicesExceptionUtil.java:114)

        at
es.gedasgrp.framework.services.FwkServicesExceptionUtil.getFwkServicesRuntimeException(FwkServicesExce...
[Body clipped after 1000 chars, total length is 5664]]

15:39:36,031 | DEBUG | rovider-thread-2 | JbiBinding                       |
ache.servicemix.camel.JbiBinding  112 | 153 - servicemix-camel -
2010.02.0.fuse-02-00 | Set the thread context classloader
BundleDelegatingClassLoader for [Connector :: TSISB FaultManagementService
:: RoutingOSGi (tsb-conn-es-faultmanagement-prov-route)]

15:39:36,031 | DEBUG | rovider-thread-2 | OsgiCamelJbiComponent            |
icemix.common.AsyncBaseLifeCycle  683 | 94 - servicemix-common -
2010.02.0.fuse-02-00 | Correlation id retrieved from ThreadLocal:
ae56fd51-5814-49e4-8577-f8103fc37899

15:39:36,031 | DEBUG | rovider-thread-2 | DefaultErrorHandler              |
rg.apache.camel.processor.Logger  197 | 72 - org.apache.camel.camel-core -
2.4.0.fuse-02-00 | Failed delivery for exchangeId:
c5659502-cf17-4556-8aa7-5e94653d54f9. On delivery attempt: 0 caught:
java.lang.IllegalStateException: No endpoint, service or interface name
specified for routing

15:39:36,031 | ERROR | rovider-thread-2 | DefaultErrorHandler              |
rg.apache.camel.processor.Logger  248 | 72 - org.apache.camel.camel-core -
2.4.0.fuse-02-00 | Failed delivery for exchangeId:
c5659502-cf17-4556-8aa7-5e94653d54f9. Exhausted after delivery attempt: 1
caught: java.lang.IllegalStateException: No endpoint, service or interface
name specified for routing

java.lang.IllegalStateException: No endpoint, service or interface name
specified for routing

        at
org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.createTarget(DeliveryChannelImpl.java:250)[95:org.apache.servicemix.jbi.runtime:1.3.0.fuse-02-00]

        at
org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.createTarget(DeliveryChannelImpl.java:228)[95:org.apache.servicemix.jbi.runtime:1.3.0.fuse-02-00]

        at
org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.send(DeliveryChannelImpl.java:174)[95:org.apache.servicemix.jbi.runtime:1.3.0.fuse-02-00]
...
<<


-- 
View this message in context: 
http://servicemix.396122.n5.nabble.com/Losing-message-body-while-sending-via-NMR-tp3376674p3377706.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to