Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8D776325 for ; Thu, 16 Jun 2011 07:27:16 +0000 (UTC) Received: (qmail 31115 invoked by uid 500); 16 Jun 2011 07:27:16 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 31068 invoked by uid 500); 16 Jun 2011 07:27:15 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 31060 invoked by uid 99); 16 Jun 2011 07:27:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 07:27:15 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 07:27:10 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QX6yX-0004RO-4u for users@camel.apache.org; Thu, 16 Jun 2011 00:26:49 -0700 Date: Thu, 16 Jun 2011 00:26:49 -0700 (PDT) From: =?UTF-8?Q?Andr=C3=A8?= To: users@camel.apache.org Message-ID: <1308209209145-4493925.post@n5.nabble.com> In-Reply-To: References: <1308132967595-4490743.post@n5.nabble.com> <4DF89B77.6050701@catify.com> <1308145122011-4491246.post@n5.nabble.com> <4DF8B9B0.70604@catify.com> <1308147241470-4491358.post@n5.nabble.com> <4DF8C391.1020803@catify.com> <1308152373918-4491646.post@n5.nabble.com> <4DF8DED6.700@catify.com> <1308156704844-4491916.post@n5.nabble.com> Subject: Re: what did i forgot? Bean integration through direct:start MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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; @Test public void testDirectSending() throws Exception{ // lets route from the output endpoints to our mock endpoints so we can assert expectations context.addRoutes(new RouteBuilder() { @Override public void configure() throws Exception { from("bean:pdp").to(outputEndpoint); } }); input4Endpoint.sendBody("direct:start"); assertMockEndpointsSatisfied(5000, TimeUnit.MILLISECONDS); } @Override protected ClassPathXmlApplicationContext createApplicationContext() { return new ClassPathXmlApplicationContext( "META-INF/spring/camel-context.xml"); } } But today there is a new situation: these routes are working but if i comment out the file:... route the direct:start route hangs and nothing goes... -- View this message in context: http://camel.465427.n5.nabble.com/what-did-i-forgot-Bean-integration-through-direct-start-tp4490510p4493925.html Sent from the Camel - Users mailing list archive at Nabble.com.