Results 1 to 6 of 6

Thread: jconsole remote server connection

  1. #1

    Default jconsole remote server connection

    I am getting started with jmx to my application , I am using spring jms server, here is my configration


    Code:
    <context:mbean-export/>
    <bean class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
    
    <bean id="jemosJmxServer" class="org.springframework.jmx.support.ConnectorServerFactoryBean" depends-on="rmiRegistry">
    <property name="objectName" value="connector:name=rmi" />
    <property name="serviceUrl" value="service:jmx:rmi://localhost:9999/jndi/rmi://localhost:10099/myConnector" />
    </bean>
    
    <bean id="rmiRegistry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean">
    <property name="port" value="10099" />
    </bean>
    when I deploy my application to my local server, use jconsole I can see all my mbeans I can call methods on the benas etc.. all works good.
    when deployed to remote server a linux box, use jconsole the connection succeeds , but none of my mbeans are visible ,please advice me what I have to do for connection to my jmx server deployed in remote server.

  2. #2

    Default

    I tried other thing when I deploy in jetty I can use jconsole see my mbenas and when I deploy in weblogic none of my mbeans are visibel , please advice me do I have to change anything in weblgic startup script to make me mbeans visible ?

  3. #3
    Join Date
    Mar 2012
    Location
    USA
    Posts
    1

    Default

    I am also confuse about it!

  4. #4
    Join Date
    Feb 2011
    Posts
    5

    Default

    Try putting <context:mbean-server /> before the export line. I think that will try to connect to the default mbean server if one is found.

  5. #5
    Join Date
    Mar 2012
    Posts
    3

    Default

    M beginner and things mentioned are bit advanced....!!!!

    Any clear explanation will be helpful....!!!!

  6. #6
    Join Date
    Aug 2006
    Posts
    130

    Default

    this may a bit late reply but anyway :
    some servers do not allow you to register your mbeans under an arbitrary domain name,
    you should provide a domain name when registering your mbeans

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •