KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > webservice > marshalltest > MarshallRpcBeanImpl


1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */

7 package org.jboss.test.webservice.marshalltest;
8
9 import org.jboss.test.webservice.marshalltest.types.Bean;
10
11 import javax.ejb.SessionBean JavaDoc;
12 import javax.ejb.SessionContext JavaDoc;
13 import javax.xml.namespace.QName JavaDoc;
14 import java.math.BigDecimal JavaDoc;
15 import java.math.BigInteger JavaDoc;
16 import java.util.Calendar JavaDoc;
17 import java.util.Date JavaDoc;
18
19 /**
20 * @ejb.bean name="MarshallRpcBean"
21 * jndi-name="test/webservice/MarshallRpcBean"
22 * display-name="Stateless Session Bean"
23 * type="Stateless"
24 * transaction-type="Container"
25 * view-type="remote"
26 */

27 public class MarshallRpcBeanImpl implements SessionBean JavaDoc
28 {
29
30    /**
31     * @ejb.interface-method view-type="remote"
32     */

33    public String JavaDoc echoString(String JavaDoc v)
34    {
35       return v;
36    }
37
38    /**
39     * @ejb.interface-method view-type="remote"
40     */

41    public BigInteger JavaDoc echoInteger(BigInteger JavaDoc v)
42    {
43       return v;
44    }
45
46    /**
47     * @ejb.interface-method view-type="remote"
48     */

49    public int echoInt(int v)
50    {
51       return v;
52    }
53
54    /**
55     * @ejb.interface-method view-type="remote"
56     */

57    public long echoLong(long v)
58    {
59       return v;
60    }
61
62    /**
63     * @ejb.interface-method view-type="remote"
64     */

65    public short echoShort(short v)
66    {
67       return v;
68    }
69
70    /**
71     * @ejb.interface-method view-type="remote"
72     */

73    public BigDecimal JavaDoc echoDecimal(BigDecimal JavaDoc v)
74    {
75       return v;
76    }
77
78    /**
79     * @ejb.interface-method view-type="remote"
80     */

81    public float echoFloat(float v)
82    {
83       return v;
84    }
85
86    /**
87     * @ejb.interface-method view-type="remote"
88     */

89    public double echoDouble(double v)
90    {
91       return v;
92    }
93
94    /**
95     * @ejb.interface-method view-type="remote"
96     */

97    public boolean echoBoolean(boolean v)
98    {
99       return v;
100    }
101
102    /**
103     * @ejb.interface-method view-type="remote"
104     */

105    public byte echoByte(byte v)
106    {
107       return v;
108    }
109
110    /**
111     * @ejb.interface-method view-type="remote"
112     */

113    public QName JavaDoc echoQName(QName JavaDoc v)
114    {
115       return v;
116    }
117
118    /**
119     * @ejb.interface-method view-type="remote"
120     */

121    public Calendar JavaDoc echoDateTimeCalendar(Calendar JavaDoc v)
122    {
123       return v;
124    }
125
126    /**
127     * @ejb.interface-method view-type="remote"
128     */

129    public Date JavaDoc echoDateTimeDate(Date JavaDoc v)
130    {
131       return v;
132    }
133
134    /**
135     * @ejb.interface-method view-type="remote"
136     */

137    public Calendar JavaDoc echoDateCalendar(Calendar JavaDoc v)
138    {
139       return v;
140    }
141
142    /**
143     * @ejb.interface-method view-type="remote"
144     */

145    public Date JavaDoc echoDateDate(Date JavaDoc v)
146    {
147       return v;
148    }
149
150    /**
151     * @ejb.interface-method view-type="remote"
152     */

153    public byte[] echoBase64Binary(byte[] v)
154    {
155       return v;
156    }
157
158    /**
159     * @ejb.interface-method view-type="remote"
160     */

161    public byte[] echoHexBinary(byte[] v)
162    {
163       return v;
164    }
165
166    /**
167     * @ejb.interface-method view-type="remote"
168     */

169    public Bean echoBean(Bean bean)
170    {
171       return bean;
172    }
173
174    //
175
// array methods
176
//
177

178    /**
179     * @ejb.interface-method view-type="remote"
180     */

181    public String JavaDoc[] echoStringArray(String JavaDoc[] v)
182    {
183       return v;
184    }
185
186    /**
187     * @ejb.interface-method view-type="remote"
188     */

189    public BigInteger JavaDoc[] echoIntegerArray(BigInteger JavaDoc[] v)
190    {
191       return v;
192    }
193
194    /**
195     * @ejb.interface-method view-type="remote"
196     */

197    public int[] echoIntArray(int[] v)
198    {
199       return v;
200    }
201
202    /**
203     * @ejb.interface-method view-type="remote"
204     */

205    public long[] echoLongArray(long[] v)
206    {
207       return v;
208    }
209
210    /**
211     * @ejb.interface-method view-type="remote"
212     */

213    public short[] echoShortArray(short[] v)
214    {
215       return v;
216    }
217
218    /**
219     * @ejb.interface-method view-type="remote"
220     */

221    public BigDecimal JavaDoc[] echoDecimalArray(BigDecimal JavaDoc[] v)
222    {
223       return v;
224    }
225
226    /**
227     * @ejb.interface-method view-type="remote"
228     */

229    public float[] echoFloatArray(float[] v)
230    {
231       return v;
232    }
233
234    /**
235     * @ejb.interface-method view-type="remote"
236     */

237    public double[] echoDoubleArray(double[] v)
238    {
239       return v;
240    }
241
242    /**
243     * @ejb.interface-method view-type="remote"
244     */

245    public boolean[] echoBooleanArray(boolean[] v)
246    {
247       return v;
248    }
249
250    /**
251     * @ejb.interface-method view-type="remote"
252     */

253    public byte[] echoByteArray(byte[] v)
254    {
255       return v;
256    }
257
258    /**
259     * @ejb.interface-method view-type="remote"
260     */

261    public QName JavaDoc[] echoQNameArray(QName JavaDoc[] v)
262    {
263       return v;
264    }
265
266    /**
267     * @ejb.interface-method view-type="remote"
268     */

269    public Calendar JavaDoc[] echoDateTimeArray(Calendar JavaDoc[] v)
270    {
271       return v;
272    }
273    /***
274     public byte[][] echoBase64BinaryArray(byte[][] v)
275     {
276     return v;
277     }
278     public byte[][] echoHexBinaryArray(byte[][] v)
279     {
280     return v;
281     }
282
283     public void echoVoid()
284     {
285     }
286     ***/

287
288    public void ejbCreate()
289    {
290    }
291
292    public void ejbActivate()
293    {
294    }
295
296    public void ejbRemove()
297    {
298    }
299
300    public void ejbPassivate()
301    {
302    }
303
304    public void setSessionContext(SessionContext JavaDoc sc)
305    {
306    }
307 }
308
Popular Tags