Re: Implementing failover for Net::Stomp

2008-03-25 Thread Ramit Arora
Hi Simon, An async receives patch would be great. Thanks! BTW, would it be possible for you to release a failover patch for master/slave or broker networks? And transaction support would also be nice. Thanks, Ramit Simon Wistow wrote: > > On Fri, Mar 21, 2008 at 02:44:00PM -0700, Dylan Vanderho

Re: Implementing failover for Net::Stomp

2008-03-25 Thread Ramit Arora
Hello Dejan, I had a look at the PHP client. I was following a similar approach, but the major problem was that the ActiveMQ shutdown hook was enabled, which did not let the socket close for around 10secs. Disabling it has made things a lot better. Thanks for your time. Regards, Ramit Dejan Bosa

Re: Implementing failover for Net::Stomp

2008-03-25 Thread Simon Wistow
On Fri, Mar 21, 2008 at 02:44:00PM -0700, Dylan Vanderhoof said: > If you get this worked out, would you be willing to release your > Net::Stomp hacks? The original author of the Net::Stomp client on CPAN doesn't work with ActiveMQ any more and so has let it lapse. I had a word with him and I c

Re: Implementing failover for Net::Stomp

2008-03-24 Thread Dejan Bosanac
Hi Ramit, you can take a look at how this functionality is implemented in PHP client (http://stomp.codehaus.org/PHP+Connectivity). Basically, you can detect that broker is down when you try to read/write from a socket and implement reconnection logic in those cases. BTW. error frames are sent to t

RE: Implementing failover for Net::Stomp

2008-03-21 Thread Ramit Arora
Sure thing man, but I'll have to work this thing out first I think it can be achieved if the broker sends the client an ERROR frame when it detects a shutdown in progress. My experiments show that the broker currently does not send any notification to a Stomp client while shutting down. Can so

RE: Implementing failover for Net::Stomp

2008-03-21 Thread Dylan Vanderhoof
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:[EMAIL