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 609E7CB14 for ; Thu, 7 Aug 2014 16:53:38 +0000 (UTC) Received: (qmail 57724 invoked by uid 500); 7 Aug 2014 16:53:38 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 57677 invoked by uid 500); 7 Aug 2014 16:53:38 -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 57660 invoked by uid 99); 7 Aug 2014 16:53:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2014 16:53:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.213.174 as permitted sender) Received: from [209.85.213.174] (HELO mail-ig0-f174.google.com) (209.85.213.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2014 16:53:34 +0000 Received: by mail-ig0-f174.google.com with SMTP id c1so10679869igq.7 for ; Thu, 07 Aug 2014 09:53:13 -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:content-transfer-encoding; bh=bSfuap0+d9WmuK3rPuQS6GlCS6N9I1DGQrE7Ma3/co8=; b=dVrFRP1ZiFb5/dDFPWlfQgqA2jpY+3REPfbmURa5oR3ot1+Ezd3pG/aGNkXoZd5Y4z DL+hknwY/FCzW4TFljh+05MYjrS3B87uD9d73PZRfXzAd/N6kSPfEJ7ATtjKJw4ohfw6 7f7OlOEGaVuv+Jm3aIyh/lGPhIUuQXmws6QNG0iYRalAPCcKS8VUQGpP8qHeozcYJQBW Tw/Q/Ke480NF0c/jj54DKJDbP912Ogs4xQyreI8aT2hs8SAUmdZ5ZodSOo4MrXWexhEV UhqyuWp4EVnJ1KgLSm0Ej0Yfg7wwb9nUPzyyjAjTODZ9ApRWIvAUL2me7o/3VkVVpli7 zstQ== X-Received: by 10.50.136.167 with SMTP id qb7mr30958274igb.31.1407430393559; Thu, 07 Aug 2014 09:53:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.11.67 with HTTP; Thu, 7 Aug 2014 09:52:53 -0700 (PDT) In-Reply-To: <3FB7635019A5CB408BAD3C2E108A4EEC0F0E9C2BEE@GCPWINHYD2EVS22.IND.CORP.AD> References: <3FB7635019A5CB408BAD3C2E108A4EEC0F0E7B299D@GCPWINHYD2EVS22.IND.CORP.AD> <3FB7635019A5CB408BAD3C2E108A4EEC0F0E85A932@GCPWINHYD2EVS22.IND.CORP.AD> <3FB7635019A5CB408BAD3C2E108A4EEC0F0E9C2BEE@GCPWINHYD2EVS22.IND.CORP.AD> From: Claus Ibsen Date: Thu, 7 Aug 2014 18:52:53 +0200 Message-ID: Subject: Re: Multiple JMS producer with IBMMQ To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Its usually on the JMS client you should look first to optimize, such as using a connection pool, and whether you need to use persistent messaging or not, or if you can use async vs sync sending etc. All that is often something you can configure on the JMS client level -> in other words take a look at the IBM JMS client and tune it. And a connection pool often speedup. And for concurrent sending from Camel point of view, then make routing concurrent. The best place to look is where the route starts, eg at the consumer. Maybe you can enable concurrent consumers etc. On Thu, Aug 7, 2014 at 5:57 PM, Ali, Mohammad w= rote: > Hi Christian, > > Thanks a lot for your response. > I tried using the thread dsl, when I give the thread count as 5, I can se= e in IBMMQ server there are 25 connection in output count, but rate at whic= h messages pushed to the queue doesn't increase. It processes 2000 non-pers= istence messages per minute which is very low earlier the rate was 1500msg/= min. Is there any configuration to increase the message rate to send to the= queue? Or any suggestion on this, I googled but doesn't find any solution. > > Regards, > Shadab > > > -----Original Message----- > From: Christian M=C3=BCller [mailto:christian.mueller@gmail.com] > Sent: Tuesday, August 05, 2014 12:35 PM > To: users@camel.apache.org > Subject: Re: Multiple JMS producer with IBMMQ > > Hi Shadab! > > Sorry, I overlooked that you are talking about the producer. > What is the source you are reading from? > And may the thread() DSL element is helpful for you: > > from("xxx") > .threads(3, 10, "threadName") > .to("xxx"); > > > Best, > > Christian > ----------------- > > Software Integration Specialist > > Apache Member > V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apac= he Incubator PMC Member > > https://www.linkedin.com/pub/christian-mueller/11/551/642 > > > On Tue, Aug 5, 2014 at 8:26 AM, Ali, Mohammad > wrote: > >> Hi Christian, >> >> Thanks for your reply. >> >> Will concurrentConsumer option work for producer also? I will give a >> try to this. >> >> Regards, >> Shadab >> >> >> -----Original Message----- >> From: Christian M=C3=BCller [mailto:christian.mueller@gmail.com] >> Sent: Tuesday, August 05, 2014 1:40 AM >> To: users@camel.apache.org >> Subject: Re: Multiple JMS producer with IBMMQ >> >> Is the concurrentConsumer option not working for you? >> >> Best, >> Christian >> Am 04.08.2014 18:02 schrieb "Ali, Mohammad" : >> >> > Hi, >> > >> > I am using camel-2.9.0. JMS producer component with IBMMQ >> > performance is very slow, I want to create multiple JMS producer to >> > send message to IBM queue something like multi-threading. Is there a >> > way in camel where I can create multiple threads of JMS producer, >> > just like >> concurrent consumers. >> > >> > >> > Thanks, >> > Shadab >> > >> > This e-mail (and any attachments), is confidential and may be privileg= ed. >> > It may be read, copied and used only by intended recipients. >> > Unauthorized access to this e-mail (or >> > attachments) and disclosure or copying of its contents or any action >> > taken in reliance on it is unlawful. Unintended recipients must >> > notify the sender immediately by e-mail/phone & delete it from their >> > system without making any copies or disclosing it to a third person. >> > >> > >> >> This e-mail (and any attachments), is confidential and may be privileged= . >> It may be read, copied and used only >> by intended recipients. Unauthorized access to this e-mail (or >> attachments) and disclosure or copying of its contents or any action >> taken in reliance on it is unlawful. Unintended recipients must notify >> the sender immediately by e-mail/phone & delete it from their system >> without making any copies or disclosing it to a third person. >> >> > > This e-mail (and any attachments), is confidential and may be privileged.= It may be read, copied and used only > by intended recipients. Unauthorized access to this e-mail (or attachment= s) and disclosure or copying of its > contents or any action taken in reliance on it is unlawful. Unintended re= cipients must notify the sender immediately > by e-mail/phone & delete it from their system without making any copies o= r disclosing it to a third person. > --=20 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/