Hello,
I am trying to use a simple message forwarding configuration over
servicemix-camel. I have configured a consumer JMS Queue (my.queue) to
receive the messages and 3 receiver Provider endpoints to be routed to.
================= CONSUMER ENDPOINT ======================
<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
xmlns:ServiceConsumers="http://www.pictorsolutions.com/ServiceConsumers"
xmlns:ServiceProviders="http://www.pictorsolutions.com/ServiceProviders">
<jms:endpoint service="ServiceConsumers:JMSConsumerService"
endpoint="JMSConsumerEndpoint"
targetService="ServiceProviders:JMSProvider"
role="consumer"
destinationStyle="queue"
jmsProviderDestinationName="my.queue"
connectionFactory="#connectionFactory"/>
<bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616" />
</bean>
</beans>
===============================================
============ CAMEL-CONTEXT.xml =========================
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
">
<camelContext id="buildSimpleRouteWithChoice"
xmlns="http://activemq.apache.org/camel/schema/spring"
xmlns:ServiceConsumers="http://www.pictorsolutions.com/ServiceConsumers"
xmlns:ServiceProviders="http://www.pictorsolutions.com/ServiceProviders">
<route>
<from uri="ServiceConsumers:JMSConsumerService"/>
<choice>
<when>
<predicate>
<header name="Destination"/>
<isEqualTo value="A"/>
</predicate>
<to uri="ServiceProviders:CamelAJMSProvider"/>
</when>
<when>
<predicate>
<header name="Destination"/>
<isEqualTo value="B"/>
</predicate>
<to uri="ServiceProviders:CamelBJMSProvider"/>
</when>
<otherwise>
<to uri="ServiceProviders:CamelCJMSProvider"/>
</otherwise>
</choice>
</route>
</camelContext>
</beans>
===================================================
And my jbi.xml
================ JBI.XML=============================
<?xml version="1.0" encoding="UTF-8"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
<services binding-component="false"/>
</jbi>
====================================================
when I try to deploy the camel-context.xml, I get the following exception...
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-camel</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Could not deploy xbean service unit</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<msg-loc-info>
<loc-token/>
<loc-message>org.apache.camel.NoSuchEndpointException: No endpoint could be
found for: ServiceConsumers:JMSConsumerService</loc-message>
<stack-trace><![CDATA[org.apache.xbean.kernel.ServiceRegistrationException:
org.apache.camel.NoSuchEndpointException: No
endpoint could be found for: ServiceConsumers:JMSConsumerService
at
org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:424)
at
org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220)
at
org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:152)
===============
I cant seem to figure out why I get this exception. Can anyone help in this
regard? I have seen some posting saying there could be some jars missing,
but I cant seem to guess which ones. I have a simple router configuration to
route from one consumer queue to 3 different provider queues.
thanx in advance
-ram
--
View this message in context:
http://www.nabble.com/simple-CBR-using-servicemix-camel-1-consumer-JMSQ-to-3-provider-JMSQs--tp17170523p17170523.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.