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: * Initial developer(s): Michel-Ange ANTON
22: * --------------------------------------------------------------------------
23: * $Id: EditEjbMessageAction.java 9680 2006-10-06 12:08:33Z danesa $
24: * --------------------------------------------------------------------------
25: */
26:
27: package org.objectweb.jonas.webapp.jonasadmin.service.ejb;
28:
29: import javax.management.ObjectName;
30:
31: public class EditEjbMessageAction extends EditEjbAction {
32:
33: // --------------------------------------------------------- Protected Methods
34:
35: /**
36: * Get a <code>ObjectName</code> instance for the Ejb given
37: * with the parameters of the HTPP request.
38: *
39: * @return The ObjectName instance
40: * @throws Exception
41: */
42: /**
43: * Return a <code>EjbMessageForm</code> instance associate to the EJB.
44: *
45: * @return A form instance
46: */
47: protected EjbForm getEjbForm() {
48: return new EjbMessageForm();
49: }
50:
51: /**
52: * Fill all infos of EJB in the <code>EjbMessageForm</code> instance.
53: *
54: * @param p_Form Instance to fill
55: * @param p_ObjectName Instance to get infos
56: * @throws Exception
57: */
58: protected void fillEjbInfo(EjbForm p_Form, ObjectName p_ObjectName,
59: String serverName) throws Exception {
60: fillEjbGlobalInfo(p_Form, p_ObjectName);
61:
62: EjbMessageForm oForm = (EjbMessageForm) p_Form;
63: oForm.setMdbJMSAssociateDestinationName(getStringAttribute(
64: p_ObjectName, "mdbJMSAssociateDestinationName"));
65: }
66:
67: /**
68: * The global forward to go.
69: *
70: * @return Forward
71: */
72: protected String getEjbForward() {
73: return "Ejb Message";
74: }
75:
76: }
|