Unable to write to a queue in a master-slave configuration

2012-02-16 Thread archa
In my configuration in which I am using the failover protocol to get a master-slave configuration. and are configured to point to the same database. Following is my code snippet to create queue sender to send the messages on the queue. Properties props = new Properties(); props.setPrope

RE: Master/slave configuration not working

2012-02-16 Thread Chaitanya Gupta
Hi Matt, Can you help with this, I can provide config file and other details you need. Thanks, Chaitanya -Original Message- From: Chaitanya Gupta [mailto:chaitanya_gu...@persistent.co.in] Sent: Wednesday, February 15, 2012 5:56 PM To: users@activemq.apache.org Subject: Master/slave confi

Re: are session.commit() and consumer.receive allowed simultaneously in separate threads?

2012-02-16 Thread mserrano
For posterity, according to comments on https://issues.apache.org/jira/browse/AMQ-3720, synchronization on the session is not required for a consumer.receive() call. -- View this message in context: http://activemq.2283324.n4.nabble.com/are-session-commit-and-consumer-receive-allowed-simultaneous

Re: Java 1.7 compatibility

2012-02-16 Thread Hiram Chirino
It should just work with JDK 1.7. If you run into an issue let us know and we will work around the problem. On Wed, Feb 15, 2012 at 3:51 PM, zaraki wrote: > Hi, > I searched on the forums before bringing this up. Is Activemq-5.5.0 > compatible with JDK 1.7. If not is it being planned for future

Re: JMS specific failover capabilities

2012-02-16 Thread Matt Pavlovich
Zagan- Are you seeing the same problem I saw with the SAP adapter, where it wouldn't allow you to set a failover URL in the SAP PI JMS configuration screen? ie.. you can only point it to the master, and not the master+slave? The updateClusterClients option in ActiveMQ, allows you to set one

Re: JMS Priority

2012-02-16 Thread Gary Tully
Have a peek at the working unit test on trunk for a comparison with your test case: http://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/MessagePriorityTest.java On 15 February 2012 20:58, Jeremy Levy wrote: > I'm attempting to test JMS Priority wit

Re: pretty old version of activemq-cpp (3.0.1) is not available

2012-02-16 Thread Timothy Bish
On Thu, 2012-02-16 at 12:32 +0100, Luis Cañas Díaz wrote: > Hi guys, > I would like to use the pyactivemq library to connect a python > application with activemq but I can't find the pretty old version of > activemq-cpp 3.0.1 (which is a requirement). The links at the download > page return awf

pretty old version of activemq-cpp (3.0.1) is not available

2012-02-16 Thread Luis Cañas Díaz
Hi guys, I would like to use the pyactivemq library to connect a python application with activemq but I can't find the pretty old version of activemq-cpp 3.0.1 (which is a requirement). The links at the download page return awful 404 errors. Does anyone know where I can find that version? Th

RE: Master/slave configuration not working

2012-02-16 Thread Chaitanya Gupta
So you are saying it is DB2 Driver issue? But I can't move away from DB2. Has anyone tried clustering/failover protocol using Activemq configured with DB2? Thanks, Chaitanya -Original Message- From: Zagan [mailto:erbsen.fr...@gmail.com] Sent: Thursday, February 16, 2012 2:17 PM To: user

RE: logging.properties not found error during Activemq startup

2012-02-16 Thread Chaitanya Gupta
activemq.bat has following line - if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties When I specify full path, I don't get any exception - if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512

RE: logging.properties not found error during Activemq startup

2012-02-16 Thread Zagan
Hi so far it should work out of the box, At the moment the only thing I found odd is > -Djava.util.logging.config.file=logging.properties -Dact ivemq.classpath=D:\OEE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1/conf I would expect it to be -Djava.util.logging.config.file=logging.properties -

Re: JMS specific failover capabilities

2012-02-16 Thread Zagan
Hi Matt, thank you very much! Sadly I don't understand why I need two masters and two slaves. When I get it right in general the client connects to master1. When master1 goes down, it reconnects to master2. How is this achieved? Is master1 acting like a proxy because of the network connector? But

RE: Master/slave configuration not working

2012-02-16 Thread Zagan
Well, this could be due to the locking mechanism which is implemented in Active MQ. In MySQL I had simiilar problems, which could be solved switching the MySQL engine to Inno DB. -- View this message in context: http://activemq.2283324.n4.nabble.com/Master-slave-configuration-not-working-tp43