[jboss-user] [JBossCache] - Re: How to access TreeCache from MBean ?
genman
do-not-reply at jboss.com
Tue Mar 27 14:12:32 EDT 2007
I don't know why you guys suggest that class, and not the standard one:
http://java.sun.com/j2se/1.5.0/docs/api/javax/management/MBeanServerInvocationHandler.html
|
|
| If you have an MBean server mbs containing an MBean with ObjectName name, and if the MBean's management interface is described by the Java interface Intf, you can construct a proxy for the MBean like this:
|
| Intf proxy = (Intf)
| MBeanServerInvocationHandler.newProxyInstance(mbs,
| name,
| Intf.class,
| false);
|
|
| Suppose, for example, Intf looks like this:
|
| public interface Intf {
| public String getSomeAttribute();
| public void setSomeAttribute(String value);
| public void someOperation(String param1, int param2);
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032154#4032154
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032154
More information about the jboss-user
mailing list