Is it possible to control a C ++ application through JMX?

We have a distributed application containing C ++ and Java modules communicating via CORBA.

Are there C ++ libraries / tools to expose "variables" and "methods" for JMX tools (to create a unified control)?

+1


source to share


2 answers


So, even though your application is C ++ and Java, you only want to provide C ++ module attributes for the JMX manager?

If this is the case, or in fact, even if you expose both, I would look at using the SNMP library for both instances, since trying to get C ++ to support JMX directly can be hairy. JMX and SNMP are generally compatible, I'm sure you can find SNMP libraries for your C ++ components (and I know you can use for Java) and you can stick with one protocol rather than have one for C + + and one for Java.



The last snippet (and probably the easiest one) is to find the SNMP "bridge" for your JMX console, manager, or whatever you are using.

+2


source


If I tried this, I would have a component on both the C ++ side and the Java side that communicate with each other (possibly using XML). The Java side would be the actual JBM MBean that you could interact with, and the C ++ side would do a reflection on that side.



0


source







All Articles