activemq-artemis

Apache Artemis - logs AMQ212037 connection failure and connection reset by peer [code=GENERIC_EXCEPTION]

强颜欢笑 提交于 2020-08-10 18:56:16
问题 Artemis is configured in HA, with one master and a backup slave in different VM's. The broker.xml configuration uses static discovery options and the acceptors, 61616 supporing all the protocols, and AMQP. The configuration is similar to this link artemis.log (below issue is continuously logged) WARN [org.apache.activemq.artemis.core.client] AMQ212037: Connection failure to <ip-address> has been detected: readAddress(..) failed: Connection reset by peer [code=GENERIC_EXCEPTION] From the logs,

Unable to send message to remote ActiveMQ Artemis embedded in JBoss EAP 7.2

北城以北 提交于 2020-07-22 08:34:26
问题 I am trying to send a JMS message to remote ActiveMQ Artemis queue that is embedded in JBoss EAP 7.2. I have defined the following in standalone-full.xml : Remote Connector Pooled Connection Factory Remote binding <subsystem xmlns="urn:jboss:domain:messaging-activemq:4.0"> <server name="default"> <journal pool-files="10"/> <security-setting name="#"> <role name="guest" send="true" consume="true" create-non-durable-queue="true" delete-non-durable-queue="true"/> </security-setting> <address

Apache MQ Artemis - MQTT retained message not available for a client that connects to other node in cluster

白昼怎懂夜的黑 提交于 2020-07-09 06:53:45
问题 I have 4 ActiveMQ Artemis 2.10.1 instances running in a cluster . A client (A) connects to one of the nodes and publishes MQTT message with QoS=0 and retain=true . When a new MQTT client (B) connects to another node in the cluster and subscribes for the topic, the previously sent message is not received . When than client A publishes a next message, client B gets the message. Is it a bug in Artemis that retained message sent by A is not received by a client B when it connects to another node

How to embed broker? Missing broker.xml

非 Y 不嫁゛ 提交于 2020-06-29 06:44:16
问题 Currently I am writing a class which shall start and configure an embedded JMS server and after that mediate between Producers and Consumers. I found this reference and it says that it needs a broker.xml but doesn't supply any example. Can somebody tell me what I need to put into the file. And also: Will it work to start the BrokerServer as I imagine? EDIT: Now I use this code: ... SecurityConfiguration securityConfig = new SecurityConfiguration(); securityConfig.addUser("guest", "guest");

How to embed broker? Missing broker.xml

为君一笑 提交于 2020-06-29 06:44:13
问题 Currently I am writing a class which shall start and configure an embedded JMS server and after that mediate between Producers and Consumers. I found this reference and it says that it needs a broker.xml but doesn't supply any example. Can somebody tell me what I need to put into the file. And also: Will it work to start the BrokerServer as I imagine? EDIT: Now I use this code: ... SecurityConfiguration securityConfig = new SecurityConfiguration(); securityConfig.addUser("guest", "guest");

ActiveMQ Artemis broadcast sending messages to only one server in the group

試著忘記壹切 提交于 2020-06-29 03:57:26
问题 I am new to Artemis. I have two artemis server up and running but when I send broadcast messages then the messages are sent to only one server. Following is the snippet of broker.xml of brokerOne <!-- Acceptor for every supported protocol --> <acceptor name="artemis">tcp://0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;amqpMinLargeMessageSize=102400;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT,OPENWIRE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;amqpDuplicateDetection

Apache Artemis client fail over discovery

吃可爱长大的小学妹 提交于 2020-06-17 15:26:32
问题 I am using Apache Artemis V2.12.0, started two instance of broker in two VM's broker.xml (myhost1) [ broker.xml of myhost2 is similar only the port I used was 61616] <?xml version="1.0" encoding="UTF-8" standalone="no"?> <configuration xmlns="urn:activemq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:activemq /schema/artemis-configuration.xsd"> <core xmlns="urn:activemq:core"> <bindings-directory>./data/bindings</bindings-directory> <journal-directory>./data

Jolokia access with custom JAAS

我只是一个虾纸丫 提交于 2020-06-17 09:59:24
问题 In ActiveMQ Artemis when I use the requisite or required flag with my custom JAAS login module I am not able to login to the Artemis management console (Jolokia, port 8163 ). I have special business logic in the custom JAAS login module which authenticates mobile devices. But at the same time I want to have an admin user who can login to Artemis management console with some username/password or even without password. In order to have both custom and guest login module in Artemis login.config