Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 76121 invoked from network); 21 Mar 2008 21:47:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Mar 2008 21:47:34 -0000 Received: (qmail 39328 invoked by uid 500); 21 Mar 2008 21:47:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 39299 invoked by uid 500); 21 Mar 2008 21:47:32 -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 39290 invoked by uid 99); 21 Mar 2008 21:47:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2008 14:47:32 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.249.3.89] (HELO exchange00.semaphore.com) (63.249.3.89) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2008 21:46:52 +0000 Received: from exchange00.semaphore.lan ([192.168.109.70]) by exchange00.semaphore.lan ([192.168.109.70]) with mapi; Fri, 21 Mar 2008 14:44:00 -0700 From: Dylan Vanderhoof To: "'users@activemq.apache.org'" Date: Fri, 21 Mar 2008 14:44:00 -0700 Subject: RE: Implementing failover for Net::Stomp Thread-Topic: Implementing failover for Net::Stomp Thread-Index: AciLlMyLo1Z4mCfMQIq8gm2MVSrBLgACDRog Message-ID: In-Reply-To: <16207964.post@talk.nabble.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org If you get this worked out, would you be willing to release your Net::Stomp= hacks? I'm desperatly needing HA for my perl publishers (and subscribers for that = matter), but I don't have the hours to do it in house at the moment. -D > -----Original Message----- > From: Ramit Arora [mailto:ramit.arora@gmail.com] > Sent: Friday, March 21, 2008 1:50 PM > To: users@activemq.apache.org > Subject: Implementing failover for Net::Stomp > > > > Hi, > I am using ActiveMQ 5.0.0. My application requires Perl > publishers & Java > subscribers. Since HA is a necessity, I wish to implement failover > capability in the Net::Stomp client for Perl. > I've already come up with a basic solution, but I am facing > the following > problem: > I use the pipe broken signal to detect master broker failure > from perl. The > pipe does not break until the master shuts down its Stomp > connector. If I > abruptly shut down the master (power down or kill -9), then > there is no > issue. But if I cleanly shutdown the master (^C), then the > master does not > shut down its Stomp connector until it has done its cleanup. > This normally > takes around 10secs. This results in the Perl client sending > messages to the > broker for those crucial ten seconds. These messages are lost & not > delivered to the Java client. > Is there are any other way of detecting that the master is > shutting down? > Perhaps something using the STOMP ERROR frame? > > TIA, > Ramit > -- > View this message in context: > http://www.nabble.com/Implementing-failover-for-Net%3A%3AStomp -tp16207964s2354p16207964.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.