Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-14 Thread Justin Bertram
For what it's worth, Artemis ships with a lot of JMS examples which use jndi.properties. Your jndi.properties is using this: logMessages=queue.queues/logMessages This looks wrong to me. I think it should be: queue.queues/logMessages=logMessages The first part ("queue.") tells the JNDI

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-14 Thread Peter Chandler
log4J-2, JMS Appender requires JNDI bindings. Hence looking for a Spring Boot, Artemis, JNDI example configuration. -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: MQTT bridge to another broker

2019-03-14 Thread Justin Bertram
Camel should be able to do this [1]. Justin [1] http://activemq.apache.org/broker-camel-component.html On Thu, Mar 14, 2019 at 3:59 PM trevdyck wrote: > Hi > > Does anyone know if it is possible to bridge between ActiveMQ 5 and another > broker using MQTT? > > e.g. > > producer >

MQTT bridge to another broker

2019-03-14 Thread trevdyck
Hi Does anyone know if it is possible to bridge between ActiveMQ 5 and another broker using MQTT? e.g. producer > ActiveMQ ---MQTT---> Other broker (e.g. HiveMQ, Mosquitto, or even another ActiveMQ) --> consumer If so could you point me to any relevant documentation? -- Sent from:

Re: Federation vs cluster

2019-03-14 Thread artemisn00b
You're right. It is a rare event, and doesn't happen often enough for the tear-down and new connection to be that big of an issue. Thanks a lot for your help! :) -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Federation vs cluster

2019-03-14 Thread Justin Bertram
> Is it fine to tear down and create a new connection on every failure? I would expect that a broker failure requiring you to connect to a different broker would be a relatively rare event. The core JMS client has functionality to transparently reconnect to the same broker in the case of some

Re: Federation vs cluster

2019-03-14 Thread artemisn00b
>Why are you using 3 VMs in the first place? Is that what you were using before with the 5.x broker? The message broker is a small part of a large product. So, unfortunately due to the architecture, we HAVE to use 3 artemis servers, and can't do without. Using 3 brokers is not for higher

Re: Federation vs cluster

2019-03-14 Thread Justin Bertram
Why are you using 3 VMs in the first place? Is that what you were using before with the 5.x broker? If so, you may need to reassess your architecture since Artemis' performance is significantly better for many use-cases. You may not need so many brokers. Have you conducted any performance tests?

Re: How to remove inactive durable subscribers?

2019-03-14 Thread artemisn00b
I get it. Message expiry timer seems to be fine. Thanks again! -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Federation vs cluster

2019-03-14 Thread artemisn00b
Hmm..so I have a question. Would you recommend me using a backup at all for the scenario below - I have 3 VMs as Artemis servers and I want all messages to be delivered to all consumers on the servers. I'm currently using a cluster (ip1,ip2,ip3) and I tear-down and create a new connection on a

Re: Journal vs paging

2019-03-14 Thread artemisn00b
Thanks Justin! -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Federation vs cluster

2019-03-14 Thread Justin Bertram
I'm just getting familiar with this feature, but my understanding is that it wouldn't provide connection failover. I believe you'd still need to configure HA for that functionality. Justin On Thu, Mar 14, 2019 at 12:38 PM artemisn00b wrote: > The 3 servers are VMs. So, federation might work

Re: How to remove inactive durable subscribers?

2019-03-14 Thread Justin Bertram
Not every specific feature in the 5.x broker will be available in Artemis, but you should be able to get something semantically equivalent (or at least close). Justin On Thu, Mar 14, 2019 at 12:46 PM artemisn00b wrote: > Yes, I don't want messages to build up in the subscription and occupy >

Re: Journal vs paging

2019-03-14 Thread Justin Bertram
> Is there any setting where I can set if the memory of a queue? https://activemq.apache.org/artemis/docs/latest/paging.html (see max-size-bytes) > Also, can I set the maximum size of the journal it can grow to? https://activemq.apache.org/artemis/docs/latest/paging.html (see max-disk-usage)

Re: How to remove inactive durable subscribers?

2019-03-14 Thread artemisn00b
Yes, I don't want messages to build up in the subscription and occupy memory. I did use the message expiry timer, but here, we used ActiveMQ earlier and want to migrate to Artemis, and in ActiveMQ we had an option of removing offline durable subscribers with a timeout. -- Sent from:

Re: Journal vs paging

2019-03-14 Thread artemisn00b
Awesome! That's what I wanted to know. Thanks so much! Is there any setting where I can set if the memory of a queue? Also, can I set the maximum size of the journal it can grow to? Thanks again! :) -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Federation vs cluster

2019-03-14 Thread artemisn00b
The 3 servers are VMs. So, federation might work as well. Currently, I'm using a cluster and forwarding all messages to servers with consumers. Unfortunately, using a cluster by itself without HA means that I have to tear down the connection and create a new one, on every broker failure. So I was

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-14 Thread Peter Chandler
For the record I have used the JMSAppender for the last 10+ year. Dependencies. org.springframework.boot spring-boot-starter-parent 2.1.1.RELEASE org.springframework.boot spring-boot-starter

Message FIFO ordering and redelivery

2019-03-14 Thread peetu77
We have use case where message ordering should be preserved also in case of rollback ie. other messages shouldn't be consumed until failed message delivered succesfully. We have only one consumer on queue. However documentation says: "If a redelivery-delay is specified, Apache ActiveMQ Artemis