activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mlukica <ma...@tis.hr>
Subject jboss integration: jmx monitoring (solved Failed to start jmx connector)
Date Wed, 23 Apr 2008 16:29:04 GMT

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.


Mime
View raw message