Hi 
 
I have changed the bridge example so that it is triggered by a quartz, that
writes out a message to a jms queue in regular intervals. The only thing I
changed was the http-su to a quartz-su. The example worked fine.
 
Now I want to replace the EIP component with a camel component that does the
routing for me. But I have difficulties, because I do not know how to write
camel rule. Here is the
simple example from the bridge-eip:
 
<?xml version="1.0"?>
<beans xmlns:eip="http://servicemix.apache.org/eip/1.0";
       xmlns:b="http://servicemix.apache.org/samples/bridge";>

  <eip:pipeline service="b:pipeline" endpoint="endpoint">
        <eip:transformer>
            <eip:exchange-target service="b:xslt" />
        </eip:transformer>
        <eip:target>
            <eip:exchange-target service="b:jms" />
        </eip:target>
  </eip:pipeline>

</beans> 
 
So there is the same pipeline, as it is in the bridge example. My problem
now is, when I define camel route I do not have the service attribute set
and therefore servicemix throws an exception. This is how my camel context
looks like.
 
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:b="http://servicemix.apache.org/samples/bridge";
       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 xmlns="http://activemq.apache.org/camel/schema/spring";
useJmx="true" >
    <route>
      <from uri="b:pipeline"/>
      <to uri="b:jms"/>
    </route>
    
    <package>eip.status.servicemix</package>
  </camelContext>
</beans> 
 
My MyRouteBuilder.jave file is empty. 
Can anybody explain me, how I can use the EIP route in Camel?
 
When starting servicemix, I get this exception:
org.apache.camel.RuntimeCamelException:
org.apache.camel.NoSuchEndpointException: No endpoint could be found for:
b:pipeline
 
I understand the exception, because I do not have the b:pipeline defined. My
problem is, that I do not know how to define it in camel. I am using
servicemix 3.2.1 .
 
Thanks for any help
Robert
 
 
 
 

Reply via email to