TOPPER_HARLEY
Feb 13th, 2007, 05:31 AM
Hi all,
I have a single MBean called testbean which has a number of public methods. I export this using the snippet of XML configuration file here :
<bean id="testBean" class="test.Test"/>
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
<property name="beans">
<map>
<entry key="bean:name=testBean1" value-ref="testBean"/>
</map>
</property>
</bean>
<bean id="registry" class="org.springframework.remoting.rmi.RmiRegistryFactor yBean">
<property name="port" value="8335"/>
</bean>
<bean id="serverConnector"
class="org.springframework.jmx.support.ConnectorServerFac toryBean">
<property name="objectName" value="connector:name=rmi"/>
<property name="serviceUrl" value="service:jmx:rmi://localhost:8100/jndi/rmi://localhost:8335/server"/>
</bean>
This all works fine and dandy, I can call the various methods on the testBean using jConsole specifying "service:jmx:rmi://localhost:8100/jndi/rmi://localhost:8335/server" as the URL.
However, I need a legacy CORBA based management console to be able to call these methods, hence I need to create some sort of bridge between the CORBA console and the JMX agent/beans.
I saw that there was a JSR (http://jcp.org/en/jsr/detail?id=70) for something similar to this but it seems to have been canned :(
Does anyone know if this is possible [or worth the effort] to implement one or would it be better to abandon the JMX and use legacy app as before?
Thanks for reading
/Tom
I have a single MBean called testbean which has a number of public methods. I export this using the snippet of XML configuration file here :
<bean id="testBean" class="test.Test"/>
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
<property name="beans">
<map>
<entry key="bean:name=testBean1" value-ref="testBean"/>
</map>
</property>
</bean>
<bean id="registry" class="org.springframework.remoting.rmi.RmiRegistryFactor yBean">
<property name="port" value="8335"/>
</bean>
<bean id="serverConnector"
class="org.springframework.jmx.support.ConnectorServerFac toryBean">
<property name="objectName" value="connector:name=rmi"/>
<property name="serviceUrl" value="service:jmx:rmi://localhost:8100/jndi/rmi://localhost:8335/server"/>
</bean>
This all works fine and dandy, I can call the various methods on the testBean using jConsole specifying "service:jmx:rmi://localhost:8100/jndi/rmi://localhost:8335/server" as the URL.
However, I need a legacy CORBA based management console to be able to call these methods, hence I need to create some sort of bridge between the CORBA console and the JMX agent/beans.
I saw that there was a JSR (http://jcp.org/en/jsr/detail?id=70) for something similar to this but it seems to have been canned :(
Does anyone know if this is possible [or worth the effort] to implement one or would it be better to abandon the JMX and use legacy app as before?
Thanks for reading
/Tom