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 8392B7CFE for ; Sun, 13 Nov 2011 15:59:38 +0000 (UTC) Received: (qmail 74604 invoked by uid 500); 13 Nov 2011 15:59:37 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 74569 invoked by uid 500); 13 Nov 2011 15:59:37 -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 74561 invoked by uid 99); 13 Nov 2011 15:59:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2011 15:59:37 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,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.215.173 as permitted sender) Received: from [209.85.215.173] (HELO mail-ey0-f173.google.com) (209.85.215.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2011 15:59:33 +0000 Received: by eyh6 with SMTP id 6so4937309eyh.32 for ; Sun, 13 Nov 2011 07:59:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=EMhsBT2uvJ3tvSqqXdnAdQg+fjcxwzeoohkK0n8kmjI=; b=JS8cZYHyRN9ZtfbBUsYoIBIAfK5lN0ld2CyXLq5Afar0vvbqDe0HucQxRRcZqk5lMG M29UzHHnlDS/1J5JkrJIAw9y31mIfZ3MCbmb+7DeBKg3ORxEBx3YsWX29lCwwrgoS0By mKJrZ85o00urvCmKShHv2IFf9KHqvV94vMXyI= Received: by 10.14.9.134 with SMTP id 6mr1227706eet.3.1321199951148; Sun, 13 Nov 2011 07:59:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.14.99.5 with HTTP; Sun, 13 Nov 2011 07:58:50 -0800 (PST) In-Reply-To: <1321142707247-4987824.post@n5.nabble.com> References: <1321063283106-4986086.post@n5.nabble.com> <1321142707247-4987824.post@n5.nabble.com> From: Claus Ibsen Date: Sun, 13 Nov 2011 16:58:50 +0100 Message-ID: Subject: Re: Help creating a route amq1-->bean-->amq2 - with timeouts To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi If you do request/reply over JMS then read the JMS wiki page http://camel.apache.org/jms There is a requestTimeout option which defaults to 20000 millis =3D 20 sec. On Sun, Nov 13, 2011 at 1:05 AM, mattmadhavan wrot= e: > Hi Christian, > Thank you very much for the reply! I appreciate it. > > I have couple of more questions please! > / > I send receive the message as follows:/ > =A0Transfer reply =3D (Transfer) template.requestBody("activemq:TestHarne= ss.A", > transfer); > > on the oneMessage method of the bean, I think I should just return a valu= e > rt? > > public Object onMessage(Object obj) { > =A0 =A0Transfer transfer =3D (Transfer) obj; > =A0 =A0 do some wotk > > =A0 =A0return transfer; > } > > Will it work with the above configuration you sent? > > Also while testing the onMessage call may take long time to return! How c= an > I specify a timeout value more than the default 20000 milli secs? > > I appreciate your help in advance! > > Thanks > Matt > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Help-crea= ting-a-route-amq1-bean-amq2-with-timeouts-tp4986086p4987824.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --=20 Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/