• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MBeanServerConnection --> JMX Service URL

Henry Wong
Posts: 21711
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, I know that JMX questions are not common here. Second, this question is obscure, so I am not expecting an answer. But I can hope...

I have a library (which I can't change) that takes a JMX service URL to connect to. It is expecting a fully qualified service URL, which provides the protocol, host, and port.

However, both Weblogic and JBoss (and probably WebSphere) uses JNDI to get to the JMX connectors -- which means that the connect port is probably random, as it doesn't need to be fixed.

When I did this for Weblogic, I used the mbean server connector to create another connector at a fixed address. I was about to do this for JBoss, but realized that there has to be a easier solution. There has to be a way to get the service URL from the connector itself -- which I can then pass to the other library.

I am thinking it has to be a cast to another interface -- and I would appreciate it if someone can provide me the answer to this.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic