You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by mlukica <ma...@tis.hr> on 2008/04/23 18:29:04 UTC

jboss integration: jmx monitoring (solved Failed to start jmx connector)

Found a way to monitor amq mbeans via jboss jmx-console.

Instructions given on wiki (Integrating Apache ActiveMQ with JBoss) resulted
with:

[ManagementContext   ] Failed to start jmx connector: Cannot bind to URL
[rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException [Root
exception is java.rmi.ConnectIOException: error during JRMP connection
establishment; nested exception is: 
	java.net.SocketException: Software caused connection abort: recv failed]

After adding:

<managementContext><!-- we'll use an existing one (JBoss) instead of
creating one -->
    <managementContext createConnector="false"/>
</managementContext>

as mentioned in instructions there, amq mbeans are not accessible via
jmx-console, although warning is not reported.

Working solution:

<broker useJmx="true" persistent="true" useShutdownHook="false"
brokerName="broker01" xmlns="http://activemq.org/config/1.0">
    <managementContext>
        <managementContext>
            <MBeanServer>
                <bean class="org.jboss.mx.util.MBeanServerLocator"
factory-method="locateJBoss" xmlns=""/>
            </MBeanServer>
        </managementContext>
    </managementContext>
    ...


-- 
View this message in context: http://www.nabble.com/jboss-integration%3A-jmx-monitoring-%28solved-Failed-to-start-jmx-connector%29-tp16834698s2354p16834698.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.