Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-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 F0AC4EDB4 for ; Mon, 4 Feb 2013 17:50:15 +0000 (UTC) Received: (qmail 11931 invoked by uid 500); 4 Feb 2013 17:50:14 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 11483 invoked by uid 500); 4 Feb 2013 17:50:14 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 11205 invoked by uid 99); 4 Feb 2013 17:50:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2013 17:50:13 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tabish121@gmail.com designates 209.85.212.51 as permitted sender) Received: from [209.85.212.51] (HELO mail-vb0-f51.google.com) (209.85.212.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2013 17:50:08 +0000 Received: by mail-vb0-f51.google.com with SMTP id fq11so3986414vbb.38 for ; Mon, 04 Feb 2013 09:49:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:date:in-reply-to:references :content-type:x-mailer:mime-version:content-transfer-encoding; bh=6xqQEBndHjyMfPt197CQCQy5Lgs2HOpaOYtiqGLFKHo=; b=NEokK76pFJIlV8eI5kW/AJSO40PoG6qJUhpOBrxG7HsOP2gBYB3ivuMjEzHPqunNY3 XMY49+CzfckNmP5WRN4FYnjGYLjq0wrGamYLohdPtbplP4MD5JdU0dzcjmbVCrxFg+0a sqcqsb1xaw5PlrStwI8UtNNbnYXUdmWgHsCzApw8CaN2DUkG/4vu0T7KUsAazeEC0Eqq +BdW07yJM3Gt/CT7nsyghqEzv43vvUjzA/E1rfWx24DQyseuqjfQ/Le40oVVf/1D2dUo pzWxlBHJO5DfUcFY/49EJOKnZbfcz8N8YiC96GHBHLoQXO6AIHD/ibFFQvDBSx94iwcN 50lw== X-Received: by 10.52.178.105 with SMTP id cx9mr20818655vdc.31.1360000187104; Mon, 04 Feb 2013 09:49:47 -0800 (PST) Received: from [192.168.2.150] (c-98-231-181-148.hsd1.va.comcast.net. [98.231.181.148]) by mx.google.com with ESMTPS id a19sm22759704vdh.9.2013.02.04.09.49.44 (version=SSLv3 cipher=RC4-SHA bits=128/128); Mon, 04 Feb 2013 09:49:45 -0800 (PST) Message-ID: <1360000184.2717.1.camel@OfficePC> Subject: Re: Regarding the transport timeout with CMS From: Timothy Bish To: users@activemq.apache.org Date: Mon, 04 Feb 2013 12:49:44 -0500 In-Reply-To: <1359971706419-4662706.post@n4.nabble.com> References: <1359707991055-4662612.post@n4.nabble.com> <1359971706419-4662706.post@n4.nabble.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.2-0ubuntu0.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Mon, 2013-02-04 at 01:55 -0800, Gangadhar Rao wrote: > I tried with the below option > > std::string brokerURI = > "failover://(tcp://10.29.9.229:61617)?wireFormat=openwire&transport.timeout=3000"; > Sorry was thinking of the wrong client lib, for CMS it should be this. "failover://(tcp://10.29.9.229:61617)?timeout=3000"; There's no reason to add the wireformat option as openwire is the default. > Scenario: > > 1) Made the activemq broker down.... > 2) Started the producer process... > > It was waiting on the connection start function..I expected that the > connection would fail after 3000 milliseconds, but that is not happening.... > > Thread 1 (Thread 0x2b9ebe6133a0 (LWP 5268)): > #0 0x0000003cce20b150 in pthread_cond_timedwait@@GLIBC_2.3.2 () from > /lib64/libpthread.so.0 > #1 0x00002b9ebdb39db8 in > decaf::internal::util::concurrent::ConditionImpl::wait(decaf::util::concurrent::ConditionHandle*, > long long, long long) () from > /irb/dev2/gdoddi/activemq-cpp-library-3.4.3/src/main/.libs/libactivemq-cpp.so.14 > #2 0x00002b9ebda3fcce in > activemq::transport::failover::FailoverTransport::oneway(decaf::lang::Pointer decaf::util::concurrent::atomic::AtomicRefCounter> const&) () from > /irb/dev2/gdoddi/activemq-cpp-library-3.4.3/src/main/.libs/libactivemq-cpp.so.14 > #3 0x00002b9ebda19c9a in > activemq::transport::correlator::ResponseCorrelator::request(decaf::lang::Pointer decaf::util::concurrent::atomic::AtomicRefCounter> const&) () from > /irb/dev2/gdoddi/activemq-cpp-library-3.4.3/src/main/.libs/libactivemq-cpp.so.14 > #4 0x00002b9ebd959223 in > activemq::core::ActiveMQConnection::syncRequest(decaf::lang::Pointer decaf::util::concurrent::atomic::AtomicRefCounter>, unsigned int) () from > /irb/dev2/gdoddi/activemq-cpp-library-3.4.3/src/main/.libs/libactivemq-cpp.so.14 > #5 0x00002b9ebd95b507 in > activemq::core::ActiveMQConnection::ensureConnectionInfoSent() () from > /irb/dev2/gdoddi/activemq-cpp-library-3.4.3/src/main/.libs/libactivemq-cpp.so.14 > #6 0x00002b9ebd95baac in activemq::core::ActiveMQConnection::start() () > from > /irb/dev2/gdoddi/activemq-cpp-library-3.4.3/src/main/.libs/libactivemq-cpp.so.14 > #7 0x000000000040441c in SimpleProducer::run() () > #8 0x0000000000402dbf in main () > > > Please advice how we get the CMS Exception in the above scenario..... > > > > > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Regarding-the-transport-timeout-with-CMS-tp4662612p4662706.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- Tim Bish Sr Software Engineer | RedHat Inc. tim.bish@redhat.com | www.fusesource.com | www.redhat.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/