KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > echosample > EchoBean


1 /*======================================================================
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 ======================================================================*/

17 package org.apache.ws.echosample;
18
19 public class EchoBean implements javax.ejb.SessionBean JavaDoc {
20     public void ejbCreate() {
21     }
22
23     public void echoVoid() {
24     }
25
26     public int echoInt(int in) {
27         return in;
28     }
29
30     public double echoDouble(double in) {
31         return in;
32     }
33
34     public float echoFloat(float in) {
35         return in;
36     }
37
38     public boolean echoBoolean(boolean in) {
39         return in;
40     }
41
42     public String JavaDoc echoString(String JavaDoc in) {
43         return in;
44     }
45
46     public short echoShort(short in) {
47         return in;
48     }
49
50     public long echoLong(long in) {
51         return in;
52     }
53
54     public char echoChar(char in) {
55         return in;
56     }
57
58     public byte[] echoBytes(byte[] in) {
59         return in;
60     }
61
62     public void echoEvoid() {
63     }
64
65     public EchoStruct echoStruct(EchoStruct in) {
66         return in;
67     }
68 // public EchoStruct[] echoAStruct(EchoStruct[] in){
69
// return in;
70
// }
71

72     public void ejbActivate() throws javax.ejb.EJBException JavaDoc, java.rmi.RemoteException JavaDoc {
73     }
74
75     public void ejbPassivate() throws javax.ejb.EJBException JavaDoc, java.rmi.RemoteException JavaDoc {
76     }
77
78     public void ejbRemove() throws javax.ejb.EJBException JavaDoc, java.rmi.RemoteException JavaDoc {
79     }
80
81     public void setSessionContext(javax.ejb.SessionContext JavaDoc arg0) throws javax.ejb.EJBException JavaDoc, java.rmi.RemoteException JavaDoc {
82     }
83 }
84
Popular Tags