Announcement Announcement Module
Collapse
No announcement yet.
MBeanProxyFactoryBean: serviceURL for WebSphere 6.1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MBeanProxyFactoryBean: serviceURL for WebSphere 6.1

    Hello,

    I'm trying to access a MBean registered on a WebSphere 6.1 Application Server by employing the MBeanProxyFactoryBean. Unfortunately I do not know what the right serviceURL is. I tried to use
    Code:
    service:jmx:rmi://localhost/jndi/rmi://localhost:9999
    but I'm getting the following exception:
    Code:
    Caused by: java.lang.ClassCastException: com.sun.jndi.rmi.registry.RegistryContext incompatible with javax.management.remote.rmi.RMIServer
    What would be the right URL for accessing the service on WebSphere 6.1? Can anyone post details about how to register Spring Beans as JMX MBeans on WebSphere AS and accessing them by using MBeanProxyFactoryBean?

    Thanks
    Jens

  • #2
    Ok, I found out that the right service URL is
    Code:
    service:jmx:rmi:///jndi/rmi://localhost:9999/jmxrmi
    where 9999 is the JMX remote port.

    Comment

    Working...
    X