1 7 8 package org.jboss.net.axis.server; 9 10 import org.jboss.axis.AxisFault; 11 import org.jboss.axis.server.AxisServer; 12 import org.jboss.axis.transport.http.AdminServlet; 13 14 20 21 public class AxisAdminServlet extends AdminServlet 22 { 23 24 25 protected AxisServer server = null; 26 27 28 public AxisAdminServlet() 29 { 30 } 31 32 35 public AxisServer getEngine() throws AxisFault 36 { 37 if (server == null) 38 { 39 String installation = getInitParameter(org.jboss.net.axis.Constants.CONFIGURATION_CONTEXT); 42 try 44 { 45 server = JMXEngineConfigurationFactory.newJMXFactory(installation).getAxisServer(); 46 } 47 catch (NullPointerException e) 48 { 49 throw new AxisFault("Could not access JMX configuration factory.", e); 50 } 51 } 52 53 return server; 54 } 55 56 } 57 | Popular Tags |