01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * --------------------------------------------------------------------------
22: * $Id: EditEjbSessionSblAction.java 9680 2006-10-06 12:08:33Z danesa $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.webapp.jonasadmin.service.ejb;
25:
26: import javax.management.ObjectName;
27: import javax.servlet.http.HttpServletRequest;
28: import javax.servlet.http.HttpServletResponse;
29:
30: import org.apache.struts.action.ActionForm;
31: import org.apache.struts.action.ActionForward;
32: import org.apache.struts.action.ActionMapping;
33: import org.apache.struts.action.ActionMessage;
34: import org.apache.struts.action.ActionMessages;
35:
36: /**
37: * @author Michel-Ange ANTON
38: */
39:
40: public class EditEjbSessionSblAction extends EditEjbSessionAction {
41:
42: // --------------------------------------------------------- Public Methods
43:
44: public ActionForward executeAction(ActionMapping pMapping,
45: ActionForm pForm, HttpServletRequest pRequest,
46: HttpServletResponse pResponse) {
47: ActionMessages messages = new ActionMessages();
48: ActionMessage msg = new ActionMessage(
49: "default.ejb.type.session.instanceMaxSizePool");
50: messages.add("defaultMaxSizePool", msg);
51: saveMessages(pRequest, messages);
52: return super
53: .executeAction(pMapping, pForm, pRequest, pResponse);
54: }
55:
56: // --------------------------------------------------------- Protected Methods
57:
58: /**
59: * Get a <code>ObjectName</code> instance for the Ejb given
60: * with the parameters of the HTPP request.
61: *
62: * @return The ObjectName instance
63: * @throws Exception
64: */
65:
66: /**
67: * Return a <code>EjbSessionSblForm</code> instance associate to the EJB.
68: *
69: * @return A form instance
70: */
71: protected EjbForm getEjbForm() {
72: return new EjbSessionForm();
73: }
74:
75: /**
76: * Fill all infos of EJB Session in the <code>EjbSessionForm</code> instance.
77: *
78: * @param p_Form Instance to fill
79: * @param p_ObjectName Instance to get infos
80: * @throws Exception
81: */
82: protected void fillEjbInfo(EjbForm p_Form, ObjectName p_ObjectName,
83: String serverName) throws Exception {
84: super .fillEjbInfo(p_Form, p_ObjectName, serverName);
85: }
86:
87: /**
88: * The global forward to go.
89: *
90: * @return Forward
91: */
92: protected String getEjbForward() {
93: return "Ejb Session Sbl";
94: }
95:
96: }
|