activemq-artemis

Make DefaultMessageListenerContainer with subscriptionShared and subscriptionDurable

核能气质少年 提交于 2020-05-15 20:57:50
问题 I want to use subscriptionShared and subscriptionDurable in DefaultMessageListenerContainer due to having a shared durable subscription between all consumers. After Tomcat start I see this log message many times and it seems my topic has a problem: Setup of JMS message listener invoker failed for destination x.y.z trying to recover. cause:org.apache.activemq.ActiveMQSession.createSharedDurableConsumer (Ljavax/jms/Topic;Ljava/lang/String;)Ljavax/jms/MessageConsumer" My Spring version is 4.3.8

How to unlock ActiveMQ Artemis broker

谁说胖子不能爱 提交于 2020-03-23 12:02:02
问题 I did something to lock my ActiveMQ Artemis 2.8.1 broker. I needed to run > ./artemis data exp to get data on my queue setup. It failed to run, giving an error saying that the broker was locked: /var/lib/[broker]/lock So I stopped the broker and ran the data exp successfully, but now when I try to start the broker I get the same error, and I don't know how to stop whatever was started by data exp . Error: There is another process using the server at /var/lib/broker1/lock. Cannot start the

How to unlock ActiveMQ Artemis broker

梦想的初衷 提交于 2020-03-23 12:01:01
问题 I did something to lock my ActiveMQ Artemis 2.8.1 broker. I needed to run > ./artemis data exp to get data on my queue setup. It failed to run, giving an error saying that the broker was locked: /var/lib/[broker]/lock So I stopped the broker and ran the data exp successfully, but now when I try to start the broker I get the same error, and I don't know how to stop whatever was started by data exp . Error: There is another process using the server at /var/lib/broker1/lock. Cannot start the

How to connect to JMS queue JBoss EAP 7 behind NAT?

不打扰是莪最后的温柔 提交于 2020-03-23 01:19:38
问题 I have configured JBoss EAP 7.0 which is behind NAT gateway. JMS client can successfully connect to JMS queues from same server or another saver from same network. But when same JMS client is moved out of that network and try to connect to JMS through NAT gateway it cant connect to the queue. Same behavior is encountered in both development environment and aws ec2 in vpc. Development environment has a NAT gateway and I presume vpc also uses same or similar thing. I started with the code found

How to connect to JMS queue JBoss EAP 7 behind NAT?

点点圈 提交于 2020-03-23 01:18:40
问题 I have configured JBoss EAP 7.0 which is behind NAT gateway. JMS client can successfully connect to JMS queues from same server or another saver from same network. But when same JMS client is moved out of that network and try to connect to JMS through NAT gateway it cant connect to the queue. Same behavior is encountered in both development environment and aws ec2 in vpc. Development environment has a NAT gateway and I presume vpc also uses same or similar thing. I started with the code found

javax.jms.JMSException: Failed to create session factory while sending message to embedded ActiveMQ Artemis within JBoss EAP 7.2

≯℡__Kan透↙ 提交于 2020-02-06 07:57:48
问题 I am trying to develop a program that will send message to ActiveMQ Artemis embedded in JBoss EAP 7.2. I have followed the instructions given in this question: Below is my method which sends a message: public void sendMessage() { Context context = null; ConnectionFactory factory = null; Destination destination = null; Connection connection = null; Session session = null; MessageProducer producer = null; Properties initialProperties = new Properties(); initialProperties.put(InitialContext

javax.jms.JMSException: Failed to create session factory while sending message to embedded ActiveMQ Artemis within JBoss EAP 7.2

偶尔善良 提交于 2020-02-06 07:57:29
问题 I am trying to develop a program that will send message to ActiveMQ Artemis embedded in JBoss EAP 7.2. I have followed the instructions given in this question: Below is my method which sends a message: public void sendMessage() { Context context = null; ConnectionFactory factory = null; Destination destination = null; Connection connection = null; Session session = null; MessageProducer producer = null; Properties initialProperties = new Properties(); initialProperties.put(InitialContext

Apache ActiveMQ Artemis issue connecting Windows client to Linux Server

别说谁变了你拦得住时间么 提交于 2020-01-16 07:26:28
问题 My Apache ActiveMQ Artemis 2.10.1 server is running on Linux. When I am connecting to server with activemq-client-5.14.5.jar using the URL failover:(tcp://x.x.x.1:61616,tcp://x.x.x.2:61616)?randomize=false;priorityBackup=true from Linux messages are being consumed and posted without any error and consumer count updated on console. But when I try to connect to same servers from Windows Server 2016 with same URL, I get warning on the server side: AMQ212037: Connection failure to /x.x.x.3:51126

AMQ Address with multiple clients to a multicast queue

半城伤御伤魂 提交于 2020-01-06 05:38:07
问题 My query is for the product Red Hat AMQ 7.X (and I am using 7.2), which is based on Apache ActiveMQ Artemis and a .Net client connecting to the queue using AMQP protocol. An Artemis article discusses unicast (point-to-point), multicast (publish-subscribe) and a combination of these addressing: https://activemq.apache.org/artemis/docs/2.0.0/address-model.html It does not detail the case of two consumers connecting to the same multicast queue under an address. Our requirement is to Have pub-sub

Message redistribution on ArtemisMQ 2.x does not work

感情迁移 提交于 2020-01-05 05:42:26
问题 I would like to enable message redistribution on my 2-nodes cluster with static hosts. But it does not seem to work. 1) I have 10 producers that write to the queue "MyTestQueue" on node 1 (but no consumers). 2) I have 1 consumer on node 2 (but no producers) that consumes messages from node 2. I expect that node 1 will redistribute the messages to node 2 where the consumer exists, but it does not. The message count on node 1 is still equal the amount of messages that was sent to node 1. I have