1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.jms; 27 28 import java.io.IOException ; 29 import java.util.ArrayList ; 30 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.webapp.jonasadmin.JonasAdminJmx; 39 import org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction; 40 import org.objectweb.jonas.webapp.jonasadmin.WhereAreYou; 41 42 46 public class ListConnectionFactoriesAction extends JonasBaseAction { 47 48 public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form 49 , HttpServletRequest p_Request, HttpServletResponse p_Response) 50 throws IOException , ServletException { 51 52 m_WhereAreYou.selectNameNode(getTreeBranchName(DEPTH_SERVER) + WhereAreYou.NODE_SEPARATOR 54 + "services" + WhereAreYou.NODE_SEPARATOR + "jms" + WhereAreYou.NODE_SEPARATOR + "cf", true); 55 56 try { 57 ArrayList al = JonasAdminJmx.getConnectionFactoriesList(m_Resources); 58 p_Request.setAttribute("cfList", al); 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("Connection Factories")); 68 } 69 } 70 | Popular Tags |