1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.discovery; 27 28 import java.io.IOException ; 29 30 import javax.management.ObjectName ; 31 import javax.servlet.ServletException ; 32 import javax.servlet.http.HttpServletRequest ; 33 import javax.servlet.http.HttpServletResponse ; 34 35 import org.apache.struts.action.ActionForm; 36 import org.apache.struts.action.ActionForward; 37 import org.apache.struts.action.ActionMapping; 38 import org.objectweb.jonas.jmx.J2eeObjectName; 39 import org.objectweb.jonas.jmx.JonasManagementRepr; 40 import org.objectweb.jonas.jmx.JonasObjectName; 41 import org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction; 42 43 46 47 public class DiscoveryServiceStartMasterAction extends JonasBaseAction { 48 49 51 68 public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form 69 , HttpServletRequest p_Request, HttpServletResponse p_Response) 70 throws IOException , ServletException { 71 ObjectName oObjectName = JonasObjectName.discoveryService(); 73 try { 74 JonasManagementRepr.invoke(oObjectName, "startDiscoveryMaster", null, null); 76 refreshDomainDeployTree(p_Request); 78 } 79 catch (Throwable t) { 80 addGlobalError(t); 81 saveErrors(p_Request, m_Errors); 82 return (p_Mapping.findForward("Global Error")); 83 } 84 85 return (p_Mapping.findForward("ActionEditServiceDiscovery")); 87 } 88 } 89 | Popular Tags |