Instrumenting JCAPS JCDs with JMX

Do you have any experience with instrumenting JCAPS JCDs with JMX? I'm just beginning the research and would be interested in any lessons learned.Thanks
[167 byte] By [AKsuited] at [2007-11-26 11:33:13]
# 1
Hi,just curious why you want to be doing this?How are you going to view the mbeans attributes? via the sun mbean server admin tool presumably?
deniskrizanovic at 2007-7-7 3:49:01 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 2

I have done this just recently. You need to create an interface with the name of your jcd appended with MBean. For example, if your jcd name is jcdABC, you need to name the interface is jcdABCMBean. Inside this interface, you define methods (getters/setters) to access variables inside your jcd to change their values dynamically at runtime. In our case, we have exposed methods to enable/disable debugging mode within the jcd. You will also need to add code to register the class as an MBean with the MBeanServer provided by the domain (i.e. your logical host). This will put an entry in the jmx-console listing that you can then sign into and access the interface methods.

chrisallen21 at 2007-7-7 3:49:01 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...