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
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
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
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
-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
>
>
>
>
>
>
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
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
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
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
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
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
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
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
13 matches
Mail list logo