You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by teapot <ji...@oracle.com> on 2011/05/24 20:25:59 UTC
Running 2 instances of AMQ on the same machine
Hello;
We configure AMQ on our app server via spring bean and specify the port of
transportConnector as follows:
<transportConnectors>
<transportConnector name="openwire"
uri="tcp://0.0.0.0:61616?wireFormat.maxInactivityDuration=0"/>
</transportConnectors>
We want to run multiple instance of our app server on the same machine. So
we change the 61616 to different port number available on that machine(we
already assigned different ports for app server connection). However, we
cannot bring up the second AMQ broker.
We think there are probably some other ports used by the broker and we are
wondering what those ports are and if they can also be configurable? Thanks.
Thanks.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Running-2-instances-of-AMQ-on-the-same-machine-tp3547840p3547840.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Running 2 instances of AMQ on the same machine
Posted by Jason Whaley <ja...@gmail.com>.
I'm not sure if it applies in your case since you are embedding your
broker, but there is also the web console for activemq that would need
its port changed.
http://activemq.apache.org/web-console.html
On Wed, May 25, 2011 at 12:10 AM, padmarag lokhande
<pa...@gmail.com> wrote:
> You need to check the ports in conf/jetty.xml, as well as the JMX port in
> bin/activemq.bat or bin/activemq
> You could disable JMX for ActiveMQ if required.
>
> On Tue, May 24, 2011 at 11:55 PM, teapot <ji...@oracle.com> wrote:
>
>> Hello;
>>
>> We configure AMQ on our app server via spring bean and specify the port of
>> transportConnector as follows:
>>
>> <transportConnectors>
>> <transportConnector name="openwire"
>> uri="tcp://0.0.0.0:61616?wireFormat.maxInactivityDuration=0"/>
>> </transportConnectors>
>>
>> We want to run multiple instance of our app server on the same machine. So
>> we change the 61616 to different port number available on that machine(we
>> already assigned different ports for app server connection). However, we
>> cannot bring up the second AMQ broker.
>>
>> We think there are probably some other ports used by the broker and we are
>> wondering what those ports are and if they can also be configurable?
>> Thanks.
>>
>> Thanks.
>>
>> --
>> View this message in context:
>> http://activemq.2283324.n4.nabble.com/Running-2-instances-of-AMQ-on-the-same-machine-tp3547840p3547840.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
>
>
> --
> Regards,
> Padmarag Lokhande
> http://blog.padmarag.com
>
Re: Running 2 instances of AMQ on the same machine
Posted by rasitha <ra...@gmail.com>.
You can check the open ports in the machine and see if the port used by your
second instance is used by another process. If you are in windows netstat -a
-b will show you the port and the listening app.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Running-2-instances-of-AMQ-on-the-same-machine-tp3547840p3563587.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Running 2 instances of AMQ on the same machine
Posted by teapot <ji...@oracle.com>.
Hi:
Thanks for the response. We don't use AMQ console and didn't config
conf/jetty.xml entry in AMQ config xml file.
We embedded AMQ into our application and we do want to run more than 1
separate instance without any sharing. This is for some automated testing on
the same machine so that the test can be run at the same time for different
builds. We have chosen different AMQ ports and different folders for Kaha
DB. But we could not bring up the second instance.
Was there any default port using if we don't config conf/jetty.xml? Thanks.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Running-2-instances-of-AMQ-on-the-same-machine-tp3547840p3563547.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Running 2 instances of AMQ on the same machine
Posted by padmarag lokhande <pa...@gmail.com>.
You need to check the ports in conf/jetty.xml, as well as the JMX port in
bin/activemq.bat or bin/activemq
You could disable JMX for ActiveMQ if required.
On Tue, May 24, 2011 at 11:55 PM, teapot <ji...@oracle.com> wrote:
> Hello;
>
> We configure AMQ on our app server via spring bean and specify the port of
> transportConnector as follows:
>
> <transportConnectors>
> <transportConnector name="openwire"
> uri="tcp://0.0.0.0:61616?wireFormat.maxInactivityDuration=0"/>
> </transportConnectors>
>
> We want to run multiple instance of our app server on the same machine. So
> we change the 61616 to different port number available on that machine(we
> already assigned different ports for app server connection). However, we
> cannot bring up the second AMQ broker.
>
> We think there are probably some other ports used by the broker and we are
> wondering what those ports are and if they can also be configurable?
> Thanks.
>
> Thanks.
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Running-2-instances-of-AMQ-on-the-same-machine-tp3547840p3547840.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
--
Regards,
Padmarag Lokhande
http://blog.padmarag.com