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 ListTopicsAction extends JonasBaseAction { 47 49 public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form 50 , HttpServletRequest p_Request, HttpServletResponse p_Response) 51 throws IOException , ServletException { 52 53 m_WhereAreYou.selectNameNode(getTreeBranchName(DEPTH_SERVER) + WhereAreYou.NODE_SEPARATOR 55 + "services" + WhereAreYou.NODE_SEPARATOR + "jms" + WhereAreYou.NODE_SEPARATOR 56 + "topic", true); 57 58 try { 59 ArrayList al = JonasAdminJmx.getTopicsList(); 60 p_Request.setAttribute("topicsList", al); 61 } 62 catch (Throwable t) { 63 addGlobalError(t); 64 saveErrors(p_Request, m_Errors); 65 return (p_Mapping.findForward("Global Error")); 66 } 67 return (p_Mapping.findForward("Topics")); 69 } 70 } 71 | Popular Tags |