activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j0llyr0g3r <timo.roess...@wincor-nixdorf.com>
Subject Re: jmx remote not working
Date Fri, 19 Oct 2007 09:10:50 GMT

Hey folks, 

sorry for providing such poor information.

Here is precisely what i do:

I follow the instructions provided by the AMQ-website here:
http://activemq.apache.org/jmx.html

The relevant section is at the end of the page and called Advanced JMX
Configuration.

According to the page, i did the following:

- I enabled jmx in the broker but did NOT create a connector:

<broker xmlns="http://activemq.org/config/1.0" useJmx="true"
brokerName="localhost" >

   <managementContext>
       <managementContext createConnector="false"
jmxDomainName="org.apache.activemq"/>
    </managementContext>

- Then i modified the activemq-startscript:

SUNJMX="-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=1616 \
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false"

Now if i start the broker via the script, a

 netstat -tulpen | grep 1616

shows

 tcp        0      0 :::1616                 :::*                    LISTEN     
1008       3538689    760/java 

but i still can not connect via 

service:jmx:rmi:///jndi/rmi://<your hostname>:1616/jmxrmi

Error is simply "connection failed"......

Any hints / clues?


j0llyr0g3r wrote:
> 
> Hi folks,
> 
> i have a strange problem here:
> 
> When i start a broker on localhost i can connect to it via jconsole.
> 
> But if i try the same with a remote broker, i get the error:
> 
> The connection to myhost:2099 did not succeed.
> 
> The remote broker is up and running and i can send and receive messages
> from it.
> 
> A 
> 
>     telnet myhost 2099
> 
> or a 
> 
>     netstat -tulpen | grep 2099
> 
> on the remote host shows me that activemq listens to that port.
> 
> I also enabled jmx in the broker via:
> 
>    <broker xmlns="http://activemq.org/config/1.0" useJmx="true"
> brokerName="localhost" >
> 
> and 
> 
>    <managementContext>
>        <managementContext connectorPort="2099"
> jmxDomainName="org.apache.activemq"/>
>     </managementContext>
>  
> What am i doing wrong here?
> 
> P.S. I use the latest Version 5 of amq.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/jmx-remote-not-working-tf4640173s2354.html#a13290654
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message