Re: Failover Bug with ActiveMQ

2013-01-18 Thread Eric Charles
Hi Philipp, Thx again for you detailed inputs. Yes, 1/ seems promising. With a bit of effort, I'm sure it would even be possible to setup a unit test that launches 2 embedded amq, the first one being stopped after a delay (see [1] for the current unit test). You would also need to configure y

Re: Failover Bug with ActiveMQ

2013-01-17 Thread Philipp Krenn
Hi Eric, thanks for the quick reply! Just to be clear, depending on the configuration, we run into different exceptions: 1) If we use AMQ's PooledConnectionFactory we get a ClassCastException as soon as a message is being delivered due to the wrong exception. Failover is working fine, however.

Re: Failover Bug with ActiveMQ

2013-01-17 Thread Eric Charles
Hi Philipp, Good to see you are progressing. If I undertand well fail-over occurs, but your receive a ClassCastException upon receiving a message. I would be great if you could share the details of your configuration (just replace hostname, username, password...) to make fail-over work. Also

Re: Failover Bug with ActiveMQ

2013-01-17 Thread Philipp Krenn
Hi, we have removed the definition for creating an ActiveMQ broker from the spring-server.xml and are using an external one. In order to do so, we have configured accordingly. This configuration is the same as we are using for several other camel-based applications (where we also use Spring's

Re: Failover Bug with ActiveMQ

2013-01-15 Thread Eric Charles
Hi, Interestting, this is the first time I hear about a real James with amq in a failover configuration. I guess you changed in spring-server.xml the block Maybe a first test scenario would be to be sure James doesn't use the queue, failingover amq, and begin to send again mail to jame