You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by noone100 <za...@puzzle.ch> on 2015/06/10 09:11:34 UTC

How to test a single route within a camel blueprint context

Given following blueprint snippet:

<blueprint>
 <bean activemq>
 <bean webservice client>

 <cm:property-placeholder persistent-id="my-id" />

 <camelContext>
 <route id="one">
  <from uri="activemq:{{property1}}>
  <to uri="direct:next">
 </route>

 <route id="two">
  <from uri="direct:next">
  <enrich from webservice client using {{property2}}>
  <to uri="direct:done">
 </route>
<camelContext>
<blueprint>

How can I modify the blueprint.xml (or the test) if I'm only interested in
testing route two without the need to setup an activemq broker?





--
View this message in context: http://camel.465427.n5.nabble.com/How-to-test-a-single-route-within-a-camel-blueprint-context-tp5768056.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to test a single route within a camel blueprint context

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

You can use advice-with and change the route from endpoint.
http://camel.apache.org/advicewith.html

On Wed, Jun 10, 2015 at 9:11 AM, noone100 <za...@puzzle.ch> wrote:
> Given following blueprint snippet:
>
> <blueprint>
>  <bean activemq>
>  <bean webservice client>
>
>  <cm:property-placeholder persistent-id="my-id" />
>
>  <camelContext>
>  <route id="one">
>   <from uri="activemq:{{property1}}>
>   <to uri="direct:next">
>  </route>
>
>  <route id="two">
>   <from uri="direct:next">
>   <enrich from webservice client using {{property2}}>
>   <to uri="direct:done">
>  </route>
> <camelContext>
> <blueprint>
>
> How can I modify the blueprint.xml (or the test) if I'm only interested in
> testing route two without the need to setup an activemq broker?
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-test-a-single-route-within-a-camel-blueprint-context-tp5768056.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/