Can I use Spring JMX connectors with JBoss EAP?
Issue
I would like to use Spring JMX to invoke a MBean.
EAP does not expose jmx over rmi but with remoting-jmx. However, when we attempt to use this with spring-jmx component I get the following stack trace even though I have followed the steps in the document "MalformedURLException Unsupported protocol remoting-jmx when JMX client tries to connect to JBoss EAP 6 MBean Server" to include org.jboss.remoting-jmx as a dependency to my deployment and the Spring module that I've installed on JBoss EAP.
java.net.MalformedURLException: Unsupported protocol: remoting-jmx
at javax.management.remote.JMXConnectorServerFactory.newJMXConnectorServer(JMXConnectorServerFactory.java:342) [rt.jar:1.7.0_17]
at org.springframework.jmx.support.ConnectorServerFactoryBean.afterPropertiesSet(ConnectorServerFactoryBean.java:154) [org.springframework.context-3.2.6.RELEASE.jar:3.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571) [org.springframework.beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509) [org.springframework.beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
Environment
- Red Hat JBoss Enterprise Application Platform 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
