ActiveMQ Artemis Create connection Timeout

2019-04-01 Thread PedroRP
Hi all! Is it possible to set a timeout to create a connection from a connection factory on an ActiveMQ Artemis broker? I have looked for it but I haven't found a parameter for that. Thanks in advance! -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Artemis Is it possible to catch WARN AMQ212037?

2019-01-17 Thread PedroRP
Hi Mike! Thanks for your answer. I have analized this example: https://github.com/apache/activemq-artemis/tree/master/examples/features/ha/client-side-failoverlistener and I have added the fail over event listener to my code. But I don't understand a part of this example. In the resources only an

Artemis Is it possible to catch WARN AMQ212037?

2019-01-16 Thread PedroRP
Hi! I have a master slave Artemis configuration with shared file system, and when I try to simulate a shut down failure a get the following WARN in my log: WARN [client.fail] AMQ212037: Connection failure has been detected: AMQ119815: The connection was disconnected because of server shutdown [co

Re: ActiveMQ HA on failover topic mode

2018-12-12 Thread PedroRP
Hi Tim! Thank you very much for your answer! Yes, I was using non-durable subscription on my topic. When I changed to durable subscription, It didn't lose messages if I use sync sends. The main problem now is the sending response time. It spends too much time sending messages. Is there any way to

Re: ActiveMQ HA on failover topic mode

2018-12-10 Thread PedroRP
Hi Tim! My sender app is sending text messages with the text: "Message (sequence)". The sender's log is showing the message after send it. This is the log: Message 6291 Message 6292 Message 6293 Message 6294 Message 6295 2018-12-10 10:37:43.175 WARN 8732 --- [.45:61626@55241] o.a.a.t.failover.Fa

Re: ActiveMQ HA on failover topic mode

2018-12-09 Thread PedroRP
Hi Tim! The lost messages are last few messages before the failover. I'm trying to simulate energy failure, so I kill the broker ungracefully (kill -9). Due to my requirements, I need to use async sends. Could this be a problem? I realized that If I reduce timeout to 1 ms no messages are lost.

Re: ActiveMQ HA on failover topic mode

2018-12-05 Thread PedroRP
Hi Tim! Sorry about the late answer. I fixed the configuration and now I have a master/slave that work fine. But I still lose messages. I checked the consumer connection and It is equal than the producer. Moreover when I disconnect master broker consumer and producer reconnect to the slave broker.

Re: ActiveMQ HA on failover topic mode

2018-11-30 Thread PedroRP
Hi Tim! Ok, so for a HA ActiveMQ master-slave is not required any network of brokers, isn't it? For the messages we are losing. We see that all messages are sent but when failover happens consumer stops listening messages. Does It makes sense with a wrong configuration? Thanks for your answer!

Re: ActiveMQ HA on failover topic mode

2018-11-30 Thread PedroRP
We have used Spring boot to develop sender and consumer apps. *SENDER:* To send messages we used and API REST that sends 5000 messages to a topic. If some convertAndSend fails (ActiveMQ node 1 killed) we retry it until the failover. This is my sender class: @RestController public class RestApiC

ActiveMQ HA on failover topic mode

2018-11-29 Thread PedroRP
Hi! Does ActiveMQ cluster (master-slave) offer high availability on failover mode? I am publishing messages on a topic but when I kill active node and my consumer connect to the other node It loses several messages. I need only topic mode, because I need to have different pods of the same opensh

ActiveMQ HA on failover topic mode

2018-11-29 Thread PedroRP
Hi! Does ActiveMQ cluster (master-slave) offer high availability on failover mode? I am publishing messages on a topic but when I kill active node and my consumer connect to the other node It loses several messages. I need only topic mode, because I need to have different pods of the same opensh