How to detect availability of inactive broker?

2010-07-22 Thread test4john
Say two brokers, one is active as the master (e.g. holding the exclusive lock to back end DB), the other is trying to get the lock to be the master. If the second one for some reason is down, then after some time when the master is down, there is no one to resume the work! So question is: how to

failover only for producers??

2010-07-16 Thread test4john
use "failover:(tcp://ip1:61616,tcp://ip2:61616)?randomize=false" for both producer and consumer. both brokers JDBC to mssql server (also tried on mysql, same results) start ip1 then ip2 so ip1 get the lock and is now the master; shutdown ip1 (now ip2 got the lock and is the master), producer kee

failover only for producers??

2010-07-16 Thread test4john
use "failover:(tcp://ip1:61616,tcp://ip2:61616)?randomize=false" for both producer and consumer. both brokers JDBC to mssql server (also tried on mysql, same results) start ip1 then ip2 so ip1 get the lock and is now the master; shutdown ip1 (now ip2 got the lock and is the master), producer kee

Re: MS Sql server Master Slave problem

2010-07-13 Thread test4john
abase configuration and also make sure none of your dev > tools are holding a lock. > > Let us know how it turned out - ActiveMQ may need an adapter for MS > SQL. > > -Clark > > www.ttmsolutions.com > ActiveMQ reference guide at > http://bit.ly/AMQRefGuide

Re: MS Sql server Master Slave problem

2010-07-13 Thread test4john
-console-5.3.2.war is used as the broker instead of the standalone one. Thanks, cobrien wrote: > > Hi: > Set useDatabaseLock=true. > > -Clark > > www.ttmsolutions.com > ActiveMQ reference guide at > http://bit.ly/AMQRefGuide > > > > > >

MS Sql server Master Slave problem

2010-07-12 Thread test4john
Client code start producing msg OK, but if stop broker A in the middle of the loop (expect broker B will take over and continue to produce), exception occurred: Violation of PRIMARY KEY constraint 'PK__ACTIVEMQ_MSGS__7A521F79'. Cannot insert duplicate key in object 'dbo.ACTIVEMQ_MSGS'. at

Re: AW: Connection refused with embeded AMQ in Tomcat

2010-06-01 Thread test4john
rowse/AMQ-2094 > > Best regards, > Andreas > > >> -Ursprüngliche Nachricht- >> Von: test4john [mailto:test4j...@yahoo.com] >> Gesendet: Freitag, 28. Mai 2010 17:18 >> An: users@activemq.apache.org >> Betreff: Re: Connection refused with embeded AMQ i

Re: Connection refused with embeded AMQ in Tomcat

2010-05-28 Thread test4john
ker > responds. > > Joe > ActiveMQ Ref Guide - http://bit.ly/AMQRefGuide > > > > test4john wrote: >> >> 1. brand new installation of tomcat 6; >> >> 2. activemq-all-5.3.2.jar put under lib; >> >> 3. activemq-web-console-5.3.2.wa

Connection refused with embeded AMQ in Tomcat

2010-05-27 Thread test4john
1. brand new installation of tomcat 6; 2. activemq-all-5.3.2.jar put under lib; 3. activemq-web-console-5.3.2.war put under webapps; 4. start tomcat and http://localhost:8080/activemq-web-console-5.3.2/queues.jsp works fine; 5. connectionFactory = new ActiveMQConnectionFactory(ActiveMQConnecti

Re: Where is the data stored using embedded broker?

2010-05-27 Thread test4john
got it. windows/system32 test4john wrote: > > OK. found in tomcat log: > > 2010-05-26 15:51:49,071 [Thread-2 ] INFO KahaStore > - Kaha Store using data directory activemq-data\localhost\kr-store\data > > however, still cannot locate thie ac

Re: Where is the data stored using embedded broker?

2010-05-27 Thread test4john
got it: Windows/system32 test4john wrote: > > OK. found in tomcat log: > > 2010-05-26 15:51:49,071 [Thread-2 ] INFO KahaStore > - Kaha Store using data directory activemq-data\localhost\kr-store\data > > however, still cannot locate thie ac

Re: Where is the data stored using embedded broker?

2010-05-26 Thread test4john
OK. found in tomcat log: 2010-05-26 15:51:49,071 [Thread-2 ] INFO KahaStore - Kaha Store using data directory activemq-data\localhost\kr-store\data however, still cannot locate thie activemq-data directory ... test4john wrote: > > Using activemq with

Where is the data stored using embedded broker?

2010-05-26 Thread test4john
Using activemq with tomcat, works fine but could not find directory like data/kahadb as in standalone mode. plz help. thanks! -- View this message in context: http://old.nabble.com/Where-is-the-data-stored-using-embedded-broker--tp28685240p28685240.html Sent from the ActiveMQ - User mailing li