dev@glassfish.java.net

Re: JMX Access to the MQ Broker

From: Linda Schneider <Linda.Schneider_at_Sun.COM>
Date: Thu, 09 Jul 2009 16:53:09 -0700

Sorry - I was confusing ...

the 7676 is unrelated to the port used by JMX

 the 7676 is default port for the "port mapper" for the MQ broker
service (standalone or embedded) which knows about all of the MQ
services that are running and their ports (or URIs) if any. When our JMX
"service" it registers information with the portmapper.

When you connect (telnet) to that port - it returns all of the state of
the services.




Jason Lee wrote:
> On Jul 9, 2009, at 5:12 PM, Lloyd Chambers wrote:
>
>> Jason,
>>
>> I don't know the answer here.
>>
>> Presumably domain.xml is going to have to have configuration for what
>> the JMXServiceURL should be.
>
> Based on what Linda said, it doesn't seem to. From a fresh
> installation, here are all the references to JMS or JMX:
>
> </iiop-service>
> <admin-service system-jmx-connector-name="system"
> type="das-and-server">
> <jmx-connector port="8686" address="0.0.0.0"
> security-enabled="false" name="system" auth-realm-name="admin-realm" />
> <das-config dynamic-reload-enabled="true"
> autodeploy-dir="${com.sun.aas.instanceRoot}/autodeploy"
> autodeploy-enabled="true" />
> <property name="adminConsoleContextRoot" value="/admin" />
> <property name="adminConsoleDownloadLocation"
> value="${com.sun.aas.installRoot}/lib/install/applications/admingui.war"
> />
> <property name="ipsRoot" value="${com.sun.aas.installRoot}/.." />
> </admin-service>
>
> <jms-service default-jms-host="default_JMS_host" type="EMBEDDED">
> <jms-host host="localhost" name="default_JMS_host" />
> </jms-service>
>
> No mention of the 7676 that Linda said I should expect, if that means
> anything.
>
>> If it's in proces, you can use @Inject MBeanServer or
>> ManagementFactory.getPlatformMBeanServer().
>
> It could be in process, but I think we support out-of-process brokers
> as well, though I'd be happy to be corrected if I'm wrong.
>
> <http://www.java.com> * Jason Lee *
> Senior Java Developer
> GlassFish Administration Console
>
> *Sun Microsystems, Inc.*
> Phone x31197/+1 405-343-1964
> Email jasondlee_at_sun.com <mailto:jasondlee_at_sun.com>
> Blog http://blogs.sun.com/jasondlee
> Blog http://blogs.steeplesoft.com
>
>