camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrè <>
Subject Re: what did i forgot? Bean integration through direct:start
Date Thu, 16 Jun 2011 07:26:49 GMT
sry but i dont really caught  your intention.
here is the testclass(generated with the fuse-ide)
so yes it extends the CamelSpringTestSupport, it has an mock-endpoint
and what method did you mean?

public class CamelContextXmlTest extends CamelSpringTestSupport {

	// expected message bodies
	protected Object[] expectedBodies = {
	// templates to send to input endpoints
	@Produce(uri = "direct:start")
	protected ProducerTemplate input4Endpoint;
	// mock endpoints used to consume messages from the output endpoints and
then perform assertions
	@EndpointInject(uri = "mock:output")
	protected MockEndpoint outputEndpoint;

	public void testDirectSending() throws Exception{
		// lets route from the output endpoints to our mock endpoints so we can
assert expectations
		context.addRoutes(new RouteBuilder() {
			public void configure() throws Exception {
		assertMockEndpointsSatisfied(5000, TimeUnit.MILLISECONDS); 
	protected ClassPathXmlApplicationContext createApplicationContext() {
		return new ClassPathXmlApplicationContext(
But today there is a new situation: these routes  are working 
        <from uri="activemq:topic:xacml.authzRequests"/>
        <log message="request consumed hopefully"/>
        <to uri="bean:pdp"/>
        <from uri="file:src/requests?noop=true"/>
        <bean method="genRequest" ref="xacmlRequest"/>
        <log message="request generated"/>
        <to uri="activemq:topic:xacml.authzRequests"/>
        <from uri="direct:start"/>
        <bean method="genRequest" ref="xacmlRequest"/>
        <log message="request generated"/>
        <to uri="activemq:topic:xacml.authzRequests"/>
but if i comment out the file:... route  the direct:start route hangs and
nothing goes...

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message