L.S., Not sure where this exception is coming from, so to ensure that this pattern is actually working properly inside servicemix-camel I raised https://issues.apache.org/activemq/browse/SMXCOMP-680 to add a unit test that demonstrates the use of it. I'm not seeing this issue inside my unit tests, so we should look a bit further.
Could you paste the xbean.xml for the target service (http://services.com/nauService) to see if there's a problem matching that endpoint name? Also, could you try replacing the jbi: endpoint in your router with e.g. a log: endpoint, just to make sure that the @RecipientList router is doing its work? Regards, Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ 2009/11/22 lekkie <[email protected]>: > > While trying to create a dynamic route using camel 2.0, I encountered the ffg > errors: > > org.apache.camel.RuntimeCamelException: java.lang.IllegalStateException: No > endpoint, service or interface name specified for routing > at > org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1039) > at > org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:103) > at > org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:543) > at > org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:482) > at > org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:451) > at > org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:323) > at > org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:261) > at > org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:982) > at > org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:974) > at > org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:876) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.IllegalStateException: No endpoint, service or > interface name specified for routing > at > org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.createTarget(DeliveryChannelImpl.java:250) > at > org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.createTarget(DeliveryChannelImpl.java:228) > > > See bean.xml contents > <bean id="recipientList" class="com.services.MyRouteBuilder"/> > > <osgi:camelContext xmlns="http://camel.apache.org/schema/spring"> > <route> > <from uri="jms:queue:requestQueue" /> > <bean ref="recipientList" method="route" /> > </route> > </osgi:camelContext> > > > See bean class > > package com.services; > > public class MyRouteBuilder { > �...@recipientlist > public String[] route(String body) { > return new > String[]{"jbi:endpoint:http://services.com/nauService/endpoint?mep=in-out"}; > } > } > > Any ideas? > > kr. > -- > View this message in context: > http://old.nabble.com/No-endpoint%2C-service-or-interface-name-specified-for-routing-tp26464172p26464172.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
