KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > common > ejbs > stateful > containermanaged > ejb2view > SimpleEjb2


1 /**
2  * EasyBeans
3  * Copyright (C) 2006 Bull S.A.S.
4  * Contact: easybeans@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  * --------------------------------------------------------------------------
22  * $Id: SimpleEjb2.java 826 2006-07-10 13:05:42Z pinheirg $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.ejb2view;
26
27 import java.rmi.RemoteException JavaDoc;
28
29 import javax.ejb.EJBObject JavaDoc;
30
31 /**
32  * The remote interface of a bean that provides a 2.1 view.
33  * @author Gisele Pinheiro Souza
34  * @author Eduardo Studzinski Estima de Castro
35  */

36 public interface SimpleEjb2 extends EJBObject JavaDoc {
37
38     /**
39      * The default bean code.
40      */

41     int DEFAULT_CODE_REMOTE = 1;
42
43     /**
44      * The default bean name.
45      */

46     String JavaDoc DEFAULT_NAME_REMOTE = "test";
47
48     /**
49      * Returns the message in the parameter.
50      * @param message the message.
51      * @return the message.
52      * @throws RemoteException if a system level error occurs.
53      */

54     String JavaDoc sayHello(final String JavaDoc message) throws RemoteException JavaDoc;
55
56     /**
57      * Gets the bean code.
58      * @return the code.
59      * @throws RemoteException if a system level error occurs.
60      */

61     int getCode() throws RemoteException JavaDoc;
62
63     /**
64      * Sets the bean code.
65      * @param intCode the code.
66      * @throws RemoteException if a system level error occurs.
67      */

68     void setCode(int intCode) throws RemoteException JavaDoc;
69
70     /**
71      * Gets the bean name.
72      * @return the bean name.
73      * @throws RemoteException if a system level error occurs.
74      */

75     String JavaDoc getName() throws RemoteException JavaDoc;
76
77     /**
78      * Sets the bean name.
79      * @param strName the bean name.
80      * @throws RemoteException if a system level error occurs.
81      */

82     void setName(String JavaDoc strName) throws RemoteException JavaDoc;
83 }
84
Popular Tags