KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hivemind > test > lib > impl > SimpleEJB


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

15 package hivemind.test.lib.impl;
16
17 import hivemind.test.lib.SimpleRemote;
18
19 import java.rmi.RemoteException JavaDoc;
20
21 import javax.ejb.EJBHome JavaDoc;
22 import javax.ejb.EJBObject JavaDoc;
23 import javax.ejb.Handle JavaDoc;
24 import javax.ejb.RemoveException JavaDoc;
25
26 /**
27  * Implementation of fake EJB.
28  *
29  * @author Howard Lewis Ship
30  */

31 public class SimpleEJB extends SimpleServiceImpl implements SimpleRemote
32 {
33
34     public EJBHome JavaDoc getEJBHome() throws RemoteException JavaDoc
35     {
36         return null;
37     }
38
39     public Handle JavaDoc getHandle() throws RemoteException JavaDoc
40     {
41         return null;
42     }
43
44     public Object JavaDoc getPrimaryKey() throws RemoteException JavaDoc
45     {
46         return null;
47     }
48
49     public boolean isIdentical(EJBObject JavaDoc arg0) throws RemoteException JavaDoc
50     {
51         return false;
52     }
53
54     public void remove() throws RemoteException JavaDoc, RemoveException JavaDoc
55     {
56
57     }
58
59 }
60
Popular Tags