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 5DDA711187 for ; Wed, 30 Jul 2014 08:35:45 +0000 (UTC) Received: (qmail 42393 invoked by uid 500); 30 Jul 2014 08:35:44 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 42346 invoked by uid 500); 30 Jul 2014 08:35:44 -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 42334 invoked by uid 99); 30 Jul 2014 08:35:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jul 2014 08:35:44 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.213.171 as permitted sender) Received: from [209.85.213.171] (HELO mail-ig0-f171.google.com) (209.85.213.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jul 2014 08:35:40 +0000 Received: by mail-ig0-f171.google.com with SMTP id l13so6895765iga.4 for ; Wed, 30 Jul 2014 01:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=VMVzOBTj+ik6haul+LZHr4Ta4LfUOIuWWiGcKCpCRUs=; b=DUHjWesKBxkZsyHV/tA500756K26ysIYuYfOqgvFIYkntmbs0J2QNzb7049qH7Rvrh GvoCz0CS5atl0146rxLmUorpwHgnj/ZFKaDMKnnqlhnAr4py2E56zt4T7nyIdETZ5sV+ 1xvfymPUIrCpxVvmmvy3+AfyVRWjuJZ6tBWXibbW2eDt9QYbEGitq1PQvAhA9IMX5Yv1 C4WsMfXQCun9wwH8PYXnrfKkF8gKWa/dEMd3n7ylasFaz1MY0MMFZPTjJBBpzoJD/NWv tMjX0vD90+QRYWjhK3/FdlA44pHFQOMQOsM3aGmE9hwDuBXbRbSqlgdIeoKtvMBdDNa0 bvSg== X-Received: by 10.50.136.167 with SMTP id qb7mr4993306igb.31.1406709320071; Wed, 30 Jul 2014 01:35:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.11.67 with HTTP; Wed, 30 Jul 2014 01:34:59 -0700 (PDT) In-Reply-To: <1406709022795-5754623.post@n5.nabble.com> References: <1406709022795-5754623.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 30 Jul 2014 10:34:59 +0200 Message-ID: Subject: Re: Why this route times out ? To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org You are doing request/reply over JMS (eg InOut). If you just want to send a message, then use InOnly. Depends how you send from your ben. But if you use producer template, then use the send for InOnly, and request for InOut. On Wed, Jul 30, 2014 at 10:30 AM, Frankiboy wrote: > This line returns a String ..... .bean(LogMq.class, "logStart") > > I want to create a String that goes in the MQ, i want to do that in a bean, > the string is create from headers an other information. > > Can anyone give me a Hint, what way i schould go > > > from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching() > .setHeader("BD", constant("YES")) > .setHeader("JMS_IBM_Format", constant("MQSTR")) > .bean(LogMq.class, "logStart") > .to("activemq:topic:HUB_TOP01"); > > I get an exception: > > used by: org.apache.camel.ExchangeTimedOutException: The OUT message was not > received within: 20000 millis due reply message with correlationID: > Camel-ID-BDD03240-52050-1406708494957-0-3 not received. Exchange[Message: > Frank was here from LogMq] > > Frank > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Why-this-route-times-out-tp5754623.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/