Announcement Announcement Module
No announcement yet.
Spring JMX and Weblogic MC4J Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring JMX and Weblogic MC4J

    I do not have any deployment issues with the below configuration but I could not see this managed bean in MC4J console. What am I missing or completely lost? Just trying to expose a bean's method for test purposes... so that we can extend this later for more complex uses...Any pointers and suggestions would be appreciated.
    Using Spring 2.x, Weblogic9.2, jdk1.5 and Windows XP

    <!-- create a test bean -->
    <bean id="testHelper" class="com.test.TestHelper"/> 
    <!-- create mbean server -->
    <bean id="mbeanServer" class="org.springframework.jndi.JndiObjectFactoryBean">
    	<property name="jndiName" value="java:comp/env/jmx/runtime"/>
    <!-- Export beans to mbean server -->
    <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
    	<property name="server" ref="mbeanServer"/>
    	<property name="autodetect" value="true"/>
    	<property name="beans">
    			<entry key="bean:name=executeMethod1" value-ref="testHelper"/>
    	<!-- build method assembler -->
    	<property name="assembler">
    		<bean class="org.springframework.jmx.export.assembler.MethodNameBasedMBeanInfoAssembler">
    			<property name="managedMethods">
    <!-- Open server connection -->    
    <bean id="runtimeMbeanServerConnection" class="" >
    	<property name="serviceUrl" value="service:jmx:t3://localhost:7003/jndi/"/>
    	<property name="environment">
    		<prop key="">weblogic</prop>
    		<prop key="">weblogic</prop>
    		<prop key="jmx.remote.protocol.provider.pkgs"></prop>
    Last edited by seekSF123; Apr 7th, 2010, 03:06 PM. Reason: re arrange subject line