You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Bruce Mitchener (JIRA)" <ji...@activemq.org> on 2006/03/21 22:09:25 UTC

[jira] Created: (AMQ-648) Changing the default JMX URL

Changing the default JMX URL
----------------------------

         Key: AMQ-648
         URL: http://jira.activemq.org/jira//browse/AMQ-648
     Project: ActiveMQ
        Type: Wish

  Components: Documentation  
    Versions: 4.0 M4    
    Reporter: Bruce Mitchener
    Priority: Minor


Most of the command line utilities accept a jmxurl parameter, but there doesn't seem to be an easy way to set up ActiveMQ to use a JMX URL other than the default.  I'd wanted to do so for my development environment so that I could run a JMX console on my desktop and connect to the server running on another machine.  At ab0oo's suggestion, I'll use an SSH port forward (ssh remotehost -L1099:localhost:1099) for now, but it'd be nice to see this covered in some form in the JMX notes.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.activemq.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AMQ-648) Changing the default JMX URL

Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-648?page=all ]

Hiram Chirino updated AMQ-648:
------------------------------

    Fix Version/s: 4.2
                       (was: 4.1.0)

> Changing the default JMX URL
> ----------------------------
>
>                 Key: AMQ-648
>                 URL: https://issues.apache.org/activemq/browse/AMQ-648
>             Project: ActiveMQ
>          Issue Type: Wish
>          Components: Documentation
>    Affects Versions: 4.0 M4
>            Reporter: Bruce Mitchener
>            Priority: Minor
>             Fix For: 4.2.0
>
>
> Most of the command line utilities accept a jmxurl parameter, but there doesn't seem to be an easy way to set up ActiveMQ to use a JMX URL other than the default.  I'd wanted to do so for my development environment so that I could run a JMX console on my desktop and connect to the server running on another machine.  At ab0oo's suggestion, I'll use an SSH port forward (ssh remotehost -L1099:localhost:1099) for now, but it'd be nice to see this covered in some form in the JMX notes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (AMQ-648) Changing the default JMX URL

Posted by "james strachan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-648?page=all ]

james strachan updated AMQ-648:
-------------------------------

    Fix Version: 4.0 RC3
                     (was: 4.0 RC 2)

> Changing the default JMX URL
> ----------------------------
>
>          Key: AMQ-648
>          URL: https://issues.apache.org/activemq/browse/AMQ-648
>      Project: ActiveMQ
>         Type: Wish

>   Components: Documentation
>     Versions: 4.0 M4
>     Reporter: Bruce Mitchener
>     Priority: Minor
>      Fix For: 4.0 RC3

>
>
> Most of the command line utilities accept a jmxurl parameter, but there doesn't seem to be an easy way to set up ActiveMQ to use a JMX URL other than the default.  I'd wanted to do so for my development environment so that I could run a JMX console on my desktop and connect to the server running on another machine.  At ab0oo's suggestion, I'll use an SSH port forward (ssh remotehost -L1099:localhost:1099) for now, but it'd be nice to see this covered in some form in the JMX notes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Reopened: (AMQ-648) Changing the default JMX URL

Posted by "james strachan (JIRA)" <ji...@activemq.org>.
     [ http://jira.activemq.org/jira//browse/AMQ-648?page=all ]
     
james strachan reopened AMQ-648:
--------------------------------


we need a way to change the host name that remote nodes can listen to

> Changing the default JMX URL
> ----------------------------
>
>          Key: AMQ-648
>          URL: http://jira.activemq.org/jira//browse/AMQ-648
>      Project: ActiveMQ
>         Type: Wish

>   Components: Documentation
>     Versions: 4.0 M4
>     Reporter: Bruce Mitchener
>     Priority: Minor
>      Fix For: 4.0 RC1

>
>
> Most of the command line utilities accept a jmxurl parameter, but there doesn't seem to be an easy way to set up ActiveMQ to use a JMX URL other than the default.  I'd wanted to do so for my development environment so that I could run a JMX console on my desktop and connect to the server running on another machine.  At ab0oo's suggestion, I'll use an SSH port forward (ssh remotehost -L1099:localhost:1099) for now, but it'd be nice to see this covered in some form in the JMX notes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.activemq.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AMQ-648) Changing the default JMX URL

Posted by "james strachan (JIRA)" <ji...@activemq.org>.
     [ http://jira.activemq.org/jira//browse/AMQ-648?page=all ]
     
james strachan resolved AMQ-648:
--------------------------------

     Resolution: Fixed
    Fix Version: 4.0 RC1

this looks to be resolved - use the <managementContext> in the activemq.xml. Let us know if its not and we can always reopen

> Changing the default JMX URL
> ----------------------------
>
>          Key: AMQ-648
>          URL: http://jira.activemq.org/jira//browse/AMQ-648
>      Project: ActiveMQ
>         Type: Wish

>   Components: Documentation
>     Versions: 4.0 M4
>     Reporter: Bruce Mitchener
>     Priority: Minor
>      Fix For: 4.0 RC1

>
>
> Most of the command line utilities accept a jmxurl parameter, but there doesn't seem to be an easy way to set up ActiveMQ to use a JMX URL other than the default.  I'd wanted to do so for my development environment so that I could run a JMX console on my desktop and connect to the server running on another machine.  At ab0oo's suggestion, I'll use an SSH port forward (ssh remotehost -L1099:localhost:1099) for now, but it'd be nice to see this covered in some form in the JMX notes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.activemq.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AMQ-648) Changing the default JMX URL

Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-648?page=all ]

Hiram Chirino updated AMQ-648:
------------------------------

    Fix Version: 4.0
                     (was: 4.0 RC3)

We just need to document this better.  Perhaps we should change this to new task instead of bug.

> Changing the default JMX URL
> ----------------------------
>
>          Key: AMQ-648
>          URL: https://issues.apache.org/activemq/browse/AMQ-648
>      Project: ActiveMQ
>         Type: Wish

>   Components: Documentation
>     Versions: 4.0 M4
>     Reporter: Bruce Mitchener
>     Priority: Minor
>      Fix For: 4.0

>
>
> Most of the command line utilities accept a jmxurl parameter, but there doesn't seem to be an easy way to set up ActiveMQ to use a JMX URL other than the default.  I'd wanted to do so for my development environment so that I could run a JMX console on my desktop and connect to the server running on another machine.  At ab0oo's suggestion, I'll use an SSH port forward (ssh remotehost -L1099:localhost:1099) for now, but it'd be nice to see this covered in some form in the JMX notes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AMQ-648) Changing the default JMX URL

Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-648?page=all ]

Hiram Chirino updated AMQ-648:
------------------------------

    Fix Version: 4.1
                     (was: 4.0)

> Changing the default JMX URL
> ----------------------------
>
>          Key: AMQ-648
>          URL: https://issues.apache.org/activemq/browse/AMQ-648
>      Project: ActiveMQ
>         Type: Wish

>   Components: Documentation
>     Versions: 4.0 M4
>     Reporter: Bruce Mitchener
>     Priority: Minor
>      Fix For: 4.1

>
>
> Most of the command line utilities accept a jmxurl parameter, but there doesn't seem to be an easy way to set up ActiveMQ to use a JMX URL other than the default.  I'd wanted to do so for my development environment so that I could run a JMX console on my desktop and connect to the server running on another machine.  At ab0oo's suggestion, I'll use an SSH port forward (ssh remotehost -L1099:localhost:1099) for now, but it'd be nice to see this covered in some form in the JMX notes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AMQ-648) Changing the default JMX URL

Posted by "Adrian Co (JIRA)" <ji...@activemq.org>.
    [ http://jira.activemq.org/jira//browse/AMQ-648?page=comments#action_35868 ] 

Adrian Co commented on AMQ-648:
-------------------------------

Hi,

You could configure the management context in the broker config using the following code snippet:

<broker useJmx="true">
        <managementContext>
	   <managementContext connectorPort="2011" connectorPath="/mypath"/>
	</managementContext>

        ....

</broker>

You could do the same thing for POJOs as well, AFAIK.

BTW, as a minor note, the console doesn't support it yet if you change the domain name. :)

Is this what you are looking for?

Regards,
Adrian Co

> Changing the default JMX URL
> ----------------------------
>
>          Key: AMQ-648
>          URL: http://jira.activemq.org/jira//browse/AMQ-648
>      Project: ActiveMQ
>         Type: Wish

>   Components: Documentation
>     Versions: 4.0 M4
>     Reporter: Bruce Mitchener
>     Priority: Minor

>
>
> Most of the command line utilities accept a jmxurl parameter, but there doesn't seem to be an easy way to set up ActiveMQ to use a JMX URL other than the default.  I'd wanted to do so for my development environment so that I could run a JMX console on my desktop and connect to the server running on another machine.  At ab0oo's suggestion, I'll use an SSH port forward (ssh remotehost -L1099:localhost:1099) for now, but it'd be nice to see this covered in some form in the JMX notes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.activemq.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AMQ-648) Changing the default JMX URL

Posted by "Bruce Mitchener (JIRA)" <ji...@activemq.org>.
    [ http://jira.activemq.org/jira//browse/AMQ-648?page=comments#action_35876 ] 

Bruce Mitchener commented on AMQ-648:
-------------------------------------

I tried to use jmxDomainName as the XSD (pointed at by James, thanks!) says should work:

     http://activemq.codehaus.org/maven/activemq.xsd.html#managementContext

  <broker useJmx="true">
    <managementContext>
       <managementContext jmxDomainName="server.hostname.com" />
    </managementContext>

But all that does is move some of the data around so that it isn't all under org.apache.activemq.

But using jconsole from my desktop did work with or without the managementContext.  Despite it saying that it is listening on localhost, it is really binding to IPADDR_ANY:

bruce@ietoh:~$ netstat -an | grep 1099
tcp6       0      0 :::1099                 :::*                    LISTEN

Which is definitely bad for some uses (potential security risk).  But perhaps that should be a different bug.

Either way, a note should be added to the JMX page in the Wiki or some other configuration-related page with notes about how to do what I wanted to do.


> Changing the default JMX URL
> ----------------------------
>
>          Key: AMQ-648
>          URL: http://jira.activemq.org/jira//browse/AMQ-648
>      Project: ActiveMQ
>         Type: Wish

>   Components: Documentation
>     Versions: 4.0 M4
>     Reporter: Bruce Mitchener
>     Priority: Minor
>      Fix For: 4.0 RC1

>
>
> Most of the command line utilities accept a jmxurl parameter, but there doesn't seem to be an easy way to set up ActiveMQ to use a JMX URL other than the default.  I'd wanted to do so for my development environment so that I could run a JMX console on my desktop and connect to the server running on another machine.  At ab0oo's suggestion, I'll use an SSH port forward (ssh remotehost -L1099:localhost:1099) for now, but it'd be nice to see this covered in some form in the JMX notes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.activemq.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AMQ-648) Changing the default JMX URL

Posted by "Hiram Chirino (JIRA)" <ji...@activemq.org>.
     [ http://jira.activemq.org/jira//browse/AMQ-648?page=all ]

Hiram Chirino updated AMQ-648:
------------------------------

    Fix Version:     (was: 4.0 RC1)
                 4.0 RC 2

> Changing the default JMX URL
> ----------------------------
>
>          Key: AMQ-648
>          URL: http://jira.activemq.org/jira//browse/AMQ-648
>      Project: ActiveMQ
>         Type: Wish

>   Components: Documentation
>     Versions: 4.0 M4
>     Reporter: Bruce Mitchener
>     Priority: Minor
>      Fix For: 4.0 RC 2

>
>
> Most of the command line utilities accept a jmxurl parameter, but there doesn't seem to be an easy way to set up ActiveMQ to use a JMX URL other than the default.  I'd wanted to do so for my development environment so that I could run a JMX console on my desktop and connect to the server running on another machine.  At ab0oo's suggestion, I'll use an SSH port forward (ssh remotehost -L1099:localhost:1099) for now, but it'd be nice to see this covered in some form in the JMX notes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.activemq.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira