See
http://camel.apache.org/advicewith.html

On Mon, Mar 28, 2011 at 7:47 PM, Tom Howe <tomh...@artcore.com> wrote:
> I have a route such as:
>
>  <route autoStartup="true" xmlns="http://camel.apache.org/schema/spring";>
>         <from uri="activemq:somequeue"/>
>         ...
>         <to uri="http:hostname/some/path"/>
>   </route>
>
> If I set up mocking, using a wrapper xml file containing:
>
>    <bean id="mockAllEndpoints"
> class="org.apache.camel.impl.InterceptSendToMockEndpointStrategy"/>
>
> I can now intercept the endpoints to see what was sent but how to I prevent
> the test from connecting to activemq and the remote http server so I can run
> the test without any external interaction?
>
> I managed to use
>    <bean id="activemq"
> class="org.apache.camel.component.direct.DirectComponent" />
>
> to prevent activemq connecting, but the same trick did not work with mina or
> http since the parameters passed are not appropriate.
>
>
> Thanks, Tom
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to