KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > service > ejb > EditEjbMessageAction


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * 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,v 1.5 2004/03/19 14:31:53 sauthieg Exp $
24  * --------------------------------------------------------------------------
25  */

26
27 package org.objectweb.jonas.webapp.jonasadmin.service.ejb;
28
29 import javax.management.ObjectName JavaDoc;
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 Entity in the <code>EjbEntityForm</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 JavaDoc p_ObjectName)
59         throws Exception JavaDoc {
60         fillEjbGlobalInfo(p_Form, p_ObjectName);
61
62         EjbMessageForm oForm = (EjbMessageForm) p_Form;
63         oForm.setMdbJMSAssociateDestinationName(getStringAttribute(p_ObjectName
64             , "mdbJMSAssociateDestinationName"));
65     }
66
67     /**
68      * The global forward to go.
69      *
70      * @return Forward
71      */

72     protected String JavaDoc getEjbForward() {
73         return "Ejb Message";
74     }
75
76 }
77
Popular Tags