1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.ejb; 27 28 import javax.management.ObjectName ; 29 import javax.servlet.http.HttpServletRequest ; 30 import javax.servlet.http.HttpServletResponse ; 31 32 import org.apache.struts.action.ActionForm; 33 import org.apache.struts.action.ActionForward; 34 import org.apache.struts.action.ActionMapping; 35 import org.apache.struts.action.ActionMessage; 36 import org.apache.struts.action.ActionMessages; 37 38 39 42 public class EditEjbSessionAction extends EditEjbAction { 43 44 46 public ActionForward executeAction(ActionMapping pMapping, 47 ActionForm pForm, 48 HttpServletRequest pRequest, 49 HttpServletResponse pResponse) { 50 ActionMessages messages = new ActionMessages(); 51 ActionMessage msg = new ActionMessage("default.ejb.type.session.sessionTimeOut"); 52 messages.add("defaultSessionTimeOut", msg); 53 saveMessages(pRequest, messages); 54 return super.executeAction(pMapping, pForm, pRequest, pResponse); 55 } 56 57 59 64 protected EjbForm getEjbForm() { 65 return new EjbSessionForm(); 66 } 67 68 69 76 protected void fillEjbInfo(EjbForm p_Form, ObjectName p_ObjectName) 77 throws Exception { 78 fillEjbGlobalInfo(p_Form, p_ObjectName); 79 80 EjbSessionForm oForm = (EjbSessionForm) p_Form; 81 String sessionTimeOut = toStringIntegerAttribute(p_ObjectName, "sessionTimeOut"); 82 oForm.setSessionTimeOut(sessionTimeOut); 83 } 84 85 90 protected String getEjbForward() { 91 return "Ejb Session"; 92 } 93 } 94 95 | Popular Tags |