Re: Running ActiveMQ and having a database failover

2010-05-09 Thread icfantv
ActiveMQ in Action - http://www.manning.com/snyder/ > Blog - http://www.nighttale.net > > > On Wed, Apr 14, 2010 at 5:31 PM, icfantv > wrote: > >> >> That's a neat idea, but unfortunately for us it does not appear that >> Postgresql supports a failover

Re: Running ActiveMQ and having a database failover

2010-04-14 Thread icfantv
That's a neat idea, but unfortunately for us it does not appear that Postgresql supports a failover parameter in the connection URL. Additionally, even if it did, it would depend on how it handled the failover so as to not cause ActiveMQ to puke. We use a floating IP address to point to the "pri

Running ActiveMQ and having a database failover

2010-04-13 Thread icfantv
We learned the hard way that using ActiveMQ with a database store doesn't play nicely with vacuums in that ActiveMQ uses open transactions to "lock" the relevant tables so secondary ActiveMQ servers wait to take over should the primary ActiveMQ server fail. The open transaction causes vacuums to

JDBC master/slave runtime issue

2009-05-05 Thread icfantv
We're running activeMQ in a master/slave configuration with a JDBC data store and two brokers in a failover configuration. According to the logs, everything is happy. The behavior we're seeing is that, in testing, when we kill the master the slave takes over (as designed, and the log file shows

How to enforce 1:1 mapping of session to message

2009-03-24 Thread icfantv
This may be due to our design and if so we can tweak to accommodate the "right" way to solve this problem. We have a web application that produces messages and throws them on a queue. We have a non-web application that runs (from the command line) that connects to this queue and processes the me

Re: Connection creation timeout setting

2009-01-16 Thread icfantv
andle connection failures - at least on the code side of things. --adam bsnyder wrote: > > On Fri, Jan 16, 2009 at 8:27 AM, icfantv > wrote: > > Just to make sure I understand what you're asking, you don't want the > client thread that's trying to connect to th

Re: Connection creation timeout setting

2009-01-16 Thread icfantv
URL of tcp://localhost:61616 is actually failover://tcp://localhost:61616. It's not obvious to me yet what the significance of the failover protocol actually means, but I'm still digging. icfantv wrote: > > Hi- > > Did a cursory search but didn't find anything related t

Re: Connection creation timeout setting

2009-01-16 Thread icfantv
plement some type of time out mechanism on the connection. --adam bsnyder wrote: > > On Thu, Jan 15, 2009 at 5:31 PM, icfantv > wrote: >> >> Hi- >> >> Did a cursory search but didn't find anything related to this so I >> apologize >> in advance

Connection creation timeout setting

2009-01-15 Thread icfantv
Hi- Did a cursory search but didn't find anything related to this so I apologize in advance if it's been asked and answered - I didn't see it. Is there a way to set a connection timeout on the connection factory class such that the thread doesn't block until a connection is successfully made? I