Re: What is the proper way to configure multiple brokers on the same machine in regard to jmx

2016-08-18 Thread Tim Bain
You can attach JConsole to multiple JVMs (ActiveMQ or otherwise) at once, which might be what you want. It might even be better, because you can scroll to equivalent parts of both trees and see them side-by-side. On Aug 18, 2016 8:06 AM, "mlange" wrote: > It was a human (mine) error; I modified

Re: activemq 3000 messages can not be received

2016-08-18 Thread softwbc
This is no problem to get the dump log ( jstack.log ) I see there is a queue does not consume message -- View this message in context: http://activemq.2283324.n4.nabb

Re: activemq 3000 messages can not be received

2016-08-18 Thread softwbc
and the consoumer configuration

Re: activemq 3000 messages can not be received

2016-08-18 Thread softwbc
This problem is only found 2 times, I have no dump file. This is the configuration of the producer mq.brokerURL=failover:(tcp://192.168.83.64:61616?wireFormat.maxInactivityDuration=0)&maxReconnectDelay=1000 mq.userName=admin mq.password=123456 mq.maxConnections=1 mq.maximumActiveSessionPerConnectio

Re: Artemis JVM shutdown

2016-08-18 Thread Ulf Lilleengen
Thank you! I will try this out. On 08/17/2016 02:44 PM, Tim Bain wrote: One of the answers to http://stackoverflow.com/questions/191215/how-to-stop-java-process-gracefully shows a way to do it using JMX after modifying the JVM's command line options. On Aug 17, 2016 2:45 AM, "Ulf Lilleengen" w

Re: Network of brokers setup error

2016-08-18 Thread mtod
Thanks Tim I have it working now with the masterslave option. Question: I'm setting up a masterslave cluster in Germany, China and other US Based locations is there any best practices for distributed clusters? Mike -- View this message in context: http://activemq.2283324.n4.nabble.com/Networ

Re: Aysnc ActiveMQ MDB unable to consume messages

2016-08-18 Thread Poonam Bhatia
Thank you for your reply Tim. I have not used any acknowledgement mode explicitly. I presume container will handle it and the default ack is AUTO_ACKNOWLEDGE. Please correct me if I am wrong Here is my MDB code In the below code I have used CDI @Inject used for MessageBus object. Also attaching ej

Re: What is the proper way to configure multiple brokers on the same machine in regard to jmx

2016-08-18 Thread mlange
It was a human (mine) error; I modified it... apologies if I had you thinking it was a typo in the default. I had been fiddling around... and have been even more: I now realized a few things; The bind error I had earlier, which caused me to think the problem was the port, actually was not the port

Re: What is the proper way to configure multiple brokers on the same machine in regard to jmx

2016-08-18 Thread Tim Bain
Here's the current version of that file in GitHub: https://github.com/apache/activemq/blob/master/assembly/src/release/bin/env I see different lines than you do, even though you're using 5.14.0 which was just released. Is there any chance you're not actually using 5.14.0? Tim On Aug 18, 2016 2:

Re: Aysnc ActiveMQ MDB unable to consume messages

2016-08-18 Thread Poonam Bhatia
Thanks Leo and Tim. If both variants are same then what could be the reason behind non consumption of my messages in async scenario with Linux variant. I have posted my MDB code along with ejb-jar.xml. Am I missing out anything? Do I have to configure some properties in activemq.xml to enable a

Re: Aysnc ActiveMQ MDB unable to consume messages

2016-08-18 Thread Tim Bain
ActiveMQ runs in the JVM, so the code is the same across operating systems (though of course the JVM itself is different). On Aug 18, 2016 6:30 AM, "Leonardo K. Shikida" wrote: > maybe the default settings are different > > [] > > Leo > > On Thu, Aug 18, 2016 at 6:32 AM, Poonam Bhatia < > poonam

Re: Aysnc ActiveMQ MDB unable to consume messages

2016-08-18 Thread Leonardo K. Shikida
maybe the default settings are different [] Leo On Thu, Aug 18, 2016 at 6:32 AM, Poonam Bhatia < poonam.c.bha...@fisglobal.com> wrote: > Hi, > > Adding some of my observations on this topic to help rectify problem > quicker. > Now I tested the same scenario with producer on one WAS and consumer

Re: Aysnc ActiveMQ MDB unable to consume messages

2016-08-18 Thread Poonam Bhatia
Hi, Adding some of my observations on this topic to help rectify problem quicker. Now I tested the same scenario with producer on one WAS and consumer on another WAS talking to windows variant ActiveMQ located on my system. The Async scenario works perfectly fine. consumer on restart does consume

Re: What is the proper way to configure multiple brokers on the same machine in regard to jmx

2016-08-18 Thread mlange
Tim, Your comment got me thinking why port 1099 was getting used rather than 11099 (and 12099); so I checked my java process and it's parameters: (ps -ef | grep java); I noticed the parameter telling the port was not in it. There's a stupid typo in the "env" files: ACTIVEMQ_SUNJMX_START="$ACTIEV

Re: What is the proper way to configure multiple brokers on the same machine in regard to jmx

2016-08-18 Thread mlange
For no obvious reason, actually... At first I did not have these parameters, neither on broker1 nor on broker2; however, upon starting broker1 first, I noticed this line: JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi | org.apache.activemq.broker.jmx.ManagementCon