Announcement Announcement Module
No announcement yet.
Spring Jmx with Weblogic 10.3 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Jmx with Weblogic 10.3

    I am trying to expose a bean as Jmx bean using Spring 3.0.3. We are using Weblogic 10.3 for deploying our application. Here is what I did -
    - Created a plain java interface and added methods which I want to expose
    to Jmx.
    - Implemented those methods in my implementation class (without
    implementing the above interface.)
    - Following is spring config I am using -

    <!-- tried and commented -->
    <bean id="mbeanserver" class="org.springframework.jndi.JndiObjectFactoryBean">
    	<property name="jndiName" value="java:comp/env/jmx/runtime"/>
    <bean id="mbeanserver" class="">
    	<property name="locateExistingServerIfPossible" value="true"/>    
    <bean id="jmxExporter" class="org.springframework.jmx.export.MBeanExporter">        
    	<property name="beans">
    			<entry key="bean:name=simpleJmxBean" value-ref="simpleJmxBean"/>
    	<property name="assembler">
    		<bean class="org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler">
    			<property name="managedInterfaces">
     	<property name="server"  ref="mbeanserver"/>
     	<!-- tried and commented -->
     	<!-- property name="autodetectModeName" value="AUTODETECT_MBEAN"/--> 
    <bean id="simpleJmxBean" class="my.jmx.example.SimpleJmxBean"/>
    On deploying I am able to see simpleJmxBean in Jconsole and it works all fine, but when I try to look for this in weblogic (under diagnostic modules -> collected Matrix -> select Mbean...) I do not see this MBean there. There are no errors on server startup.

    I understand I am following whatever is given in latest Spring document. Please let me know if I am missing something here and if I need to add more configuration for it to work on Weblogic.

    Thanks in advance !

  • #2
    Were you ever able to get this to work? Several issues I am struggling with are...
    * Synchronizing a @ManagedResource MBean across a WebLogic 10.3 cluster
    * @ManagedResource MBean persistence does not work
    * Integrating an @ManagedResource MBean into the WebLogic Admin Console

    If you have any insight into any of these issues please let me know.
    Last edited by triley; Dec 13th, 2010, 04:44 PM.