December 2013
Intermediate to advanced
424 pages
9h 7m
English
When working with Camel, you may at some point need to test a route that has endpoint URIs hardcoded into it. This tends to be more typical when testing Spring or Blueprint routes.
Consider the following route defined in /META-INF/spring/fixedEndpoints-context.xml:
<route id="modifyPayloadBetweenQueues">
<from uri="activemq:in"/>
<transform>
<simple>Modified: ${body}</simple>
</transform>
<to uri="activemq:out"/>
</route>The route endpoints here make use of the ActiveMQ Component to consume from one queue and publish to another. We would like to test this logic as described in the Testing routes defined in Spring recipe, in a pure unit test without making any changes to the route.
Camel ...
Read now
Unlock full access