-
1. Re: org.apache.camel.NoSuchEndpointException
davsclaus Apr 15, 2009 9:56 AM (in response to larsroediger)Hi
In your route you have activemq defined here:
.to("activemq:queue:QueueA");
it is the scheme of the URI (the text before the first colon).
So Camel expects to find a component with this name. As the name suggests its a AMQ broker, you need to define it as well.
In your configuration below, you have define a generic JMS component. What you can do is either:
1) change this generic from jms to activemq
2) or change the activemq in your route to jms
3) Or use ActiveMQ directly
If you want to use AMQ broker then there is a better component provided in the
activemq-camel.jar that is optimized for AMQ-Camel.
You can find this jar in the FUSE maven repo
For instance the latest release is here:
http://repo.fusesource.com/maven2/org/apache/activemq/activemq-camel/5.3.0.0-fuse/
And then you need to define a spring bean with the name activemq
See more here:
http://camel.apache.org/activemq.html
Edited by: davsclaus on Apr 15, 2009 1:55 PM
-
2. Re: org.apache.camel.NoSuchEndpointException
davsclaus Apr 15, 2009 9:59 AM (in response to larsroediger)And there is a bigger tutorial on Camel in FUSE ESB 4.x (OSGi) here:
http://camel.apache.org/tutorial-osgi-camel-part1.html
The author is currently in the writing of a 2nd part with more to come.
His blog is here:
-
3. Re: org.apache.camel.NoSuchEndpointException
larsroediger Apr 16, 2009 7:37 AM (in response to davsclaus)Thanks a lot, the first hint worked out. Didn't try the other ones.