1 23 24 29 30 package com.sun.enterprise.admin.jmx.remote.server.callers; 31 32 import javax.management.MBeanServerConnection ; 33 import javax.management.remote.message.MBeanServerRequestMessage; 34 import javax.management.remote.message.MBeanServerResponseMessage; 35 36 42 43 public class GetDefaultDomainCaller extends AbstractMethodCaller { 44 45 46 public GetDefaultDomainCaller(MBeanServerConnection mbsc) { 47 super(mbsc); 48 METHOD_ID = MBeanServerRequestMessage.GET_DEFAULT_DOMAIN; 49 } 50 51 public MBeanServerResponseMessage call(MBeanServerRequestMessage request) { 52 Object result = null; 53 boolean isException = false; 54 try { 55 result = mbsc.getDefaultDomain(); 56 } 57 catch(Throwable e) { 58 result = e; 59 isException = true; 60 } 61 return ( new MBeanServerResponseMessage(METHOD_ID, result, isException) ); 62 } 63 } | Popular Tags |