1 22 package org.jboss.ejb3; 23 24 import javax.management.MBeanServerConnection ; 25 import javax.management.ObjectName ; 26 import org.jboss.logging.Logger; 27 28 31 public class JmxClientKernelAbstraction implements ClientKernelAbstraction 32 { 33 private static final Logger log = Logger.getLogger(JmxKernelAbstraction.class); 34 35 private MBeanServerConnection server; 36 37 public JmxClientKernelAbstraction(MBeanServerConnection server) 38 { 39 this.server = server; 40 } 41 42 public Object invoke(ObjectName name, String operationName, Object [] params, String [] signature) throws Exception 43 { 44 return server.invoke(name, operationName, params, signature); 45 } 46 47 public Object getAttribute(ObjectName name, String attribute) throws Exception 48 { 49 return server.getAttribute(name, attribute); 50 } 51 } 52 | Popular Tags |