1 25 26 package org.objectweb.jonas.webapp.jonasadmin.resource; 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.JonasManagementRepr; 39 import org.objectweb.jonas.jmx.JonasObjectName; 40 import org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction; 41 42 45 46 public class SaveDestinationAction extends JonasBaseAction { 47 48 50 52 public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form 53 , HttpServletRequest p_Request, HttpServletResponse p_Response) 54 throws IOException , ServletException { 55 56 try { 57 ObjectName oObjectName = JonasObjectName.jmsService(); 58 JonasManagementRepr.invoke(oObjectName, "saveConfig", null, null); 59 60 } catch (Throwable t) { 61 addGlobalError(t); 62 saveErrors(p_Request, m_Errors); 63 return (p_Mapping.findForward("Global Error")); 64 } 65 66 return (p_Mapping.findForward("ActionListJmsResources")); 68 } 69 } 70 71 | Popular Tags |