KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASUserService1658020123Home_Stub


1 // Stub class generated by rmic, do not edit.
2
// Contents subject to change without notice.
3

4 package hero.interfaces;
5
6 public final class JOnASUserService1658020123Home_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.UserServiceHome, java.rmi.Remote JavaDoc, javax.ejb.EJBHome JavaDoc
9 {
10     private static final java.rmi.server.Operation JavaDoc[] operations = {
11     new java.rmi.server.Operation JavaDoc("hero.interfaces.UserService create()"),
12     new java.rmi.server.Operation JavaDoc("javax.ejb.EJBMetaData getEJBMetaData()"),
13     new java.rmi.server.Operation JavaDoc("javax.ejb.HomeHandle getHomeHandle()"),
14     new java.rmi.server.Operation JavaDoc("void remove(java.lang.Object)"),
15     new java.rmi.server.Operation JavaDoc("void remove(javax.ejb.Handle)")
16     };
17     
18     private static final long interfaceHash = 2917023255967409391L;
19     
20     private static final long serialVersionUID = 2;
21     
22     private static boolean useNewInvoke;
23     private static java.lang.reflect.Method JavaDoc $method_create_0;
24     private static java.lang.reflect.Method JavaDoc $method_getEJBMetaData_1;
25     private static java.lang.reflect.Method JavaDoc $method_getHomeHandle_2;
26     private static java.lang.reflect.Method JavaDoc $method_remove_3;
27     private static java.lang.reflect.Method JavaDoc $method_remove_4;
28     
29     static {
30     try {
31         java.rmi.server.RemoteRef JavaDoc.class.getMethod("invoke",
32         new java.lang.Class JavaDoc[] {
33             java.rmi.Remote JavaDoc.class,
34             java.lang.reflect.Method JavaDoc.class,
35             java.lang.Object JavaDoc[].class,
36             long.class
37         });
38         useNewInvoke = true;
39         $method_create_0 = hero.interfaces.UserServiceHome.class.getMethod("create", new java.lang.Class JavaDoc[] {});
40         $method_getEJBMetaData_1 = javax.ejb.EJBHome JavaDoc.class.getMethod("getEJBMetaData", new java.lang.Class JavaDoc[] {});
41         $method_getHomeHandle_2 = javax.ejb.EJBHome JavaDoc.class.getMethod("getHomeHandle", new java.lang.Class JavaDoc[] {});
42         $method_remove_3 = javax.ejb.EJBHome JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {java.lang.Object JavaDoc.class});
43         $method_remove_4 = javax.ejb.EJBHome JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {javax.ejb.Handle JavaDoc.class});
44     } catch (java.lang.NoSuchMethodException JavaDoc e) {
45         useNewInvoke = false;
46     }
47     }
48     
49     // constructors
50
public JOnASUserService1658020123Home_Stub() {
51     super();
52     }
53     public JOnASUserService1658020123Home_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
54     super(ref);
55     }
56     
57     // methods from remote interfaces
58

59     // implementation of create()
60
public hero.interfaces.UserService create()
61     throws java.rmi.RemoteException JavaDoc, javax.ejb.CreateException JavaDoc
62     {
63     try {
64         if (useNewInvoke) {
65         Object JavaDoc $result = ref.invoke(this, $method_create_0, null, -856188910294697090L);
66         return ((hero.interfaces.UserService) $result);
67         } else {
68         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
69         ref.invoke(call);
70         hero.interfaces.UserService $result;
71         try {
72             java.io.ObjectInput JavaDoc in = call.getInputStream();
73             $result = (hero.interfaces.UserService) in.readObject();
74         } catch (java.io.IOException JavaDoc e) {
75             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
76         } catch (java.lang.ClassNotFoundException JavaDoc e) {
77             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
78         } finally {
79             ref.done(call);
80         }
81         return $result;
82         }
83     } catch (java.lang.RuntimeException JavaDoc e) {
84         throw e;
85     } catch (java.rmi.RemoteException JavaDoc e) {
86         throw e;
87     } catch (javax.ejb.CreateException JavaDoc e) {
88         throw e;
89     } catch (java.lang.Exception JavaDoc e) {
90         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
91     }
92     }
93     
94     // implementation of getEJBMetaData()
95
public javax.ejb.EJBMetaData JavaDoc getEJBMetaData()
96     throws java.rmi.RemoteException JavaDoc
97     {
98     try {
99         if (useNewInvoke) {
100         Object JavaDoc $result = ref.invoke(this, $method_getEJBMetaData_1, null, 6217030353865232067L);
101         return ((javax.ejb.EJBMetaData JavaDoc) $result);
102         } else {
103         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
104         ref.invoke(call);
105         javax.ejb.EJBMetaData JavaDoc $result;
106         try {
107             java.io.ObjectInput JavaDoc in = call.getInputStream();
108             $result = (javax.ejb.EJBMetaData JavaDoc) in.readObject();
109         } catch (java.io.IOException JavaDoc e) {
110             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
111         } catch (java.lang.ClassNotFoundException JavaDoc e) {
112             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
113         } finally {
114             ref.done(call);
115         }
116         return $result;
117         }
118     } catch (java.lang.RuntimeException JavaDoc e) {
119         throw e;
120     } catch (java.rmi.RemoteException JavaDoc e) {
121         throw e;
122     } catch (java.lang.Exception JavaDoc e) {
123         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
124     }
125     }
126     
127     // implementation of getHomeHandle()
128
public javax.ejb.HomeHandle JavaDoc getHomeHandle()
129     throws java.rmi.RemoteException JavaDoc
130     {
131     try {
132         if (useNewInvoke) {
133         Object JavaDoc $result = ref.invoke(this, $method_getHomeHandle_2, null, -8748260460775500658L);
134         return ((javax.ejb.HomeHandle JavaDoc) $result);
135         } else {
136         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
137         ref.invoke(call);
138         javax.ejb.HomeHandle JavaDoc $result;
139         try {
140             java.io.ObjectInput JavaDoc in = call.getInputStream();
141             $result = (javax.ejb.HomeHandle JavaDoc) in.readObject();
142         } catch (java.io.IOException JavaDoc e) {
143             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
144         } catch (java.lang.ClassNotFoundException JavaDoc e) {
145             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
146         } finally {
147             ref.done(call);
148         }
149         return $result;
150         }
151     } catch (java.lang.RuntimeException JavaDoc e) {
152         throw e;
153     } catch (java.rmi.RemoteException JavaDoc e) {
154         throw e;
155     } catch (java.lang.Exception JavaDoc e) {
156         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
157     }
158     }
159     
160     // implementation of remove(Object)
161
public void remove(java.lang.Object JavaDoc $param_Object_1)
162     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
163     {
164     try {
165         if (useNewInvoke) {
166         ref.invoke(this, $method_remove_3, new java.lang.Object JavaDoc[] {$param_Object_1}, 4460578865329725433L);
167         } else {
168         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
169         try {
170             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
171             out.writeObject($param_Object_1);
172         } catch (java.io.IOException JavaDoc e) {
173             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
174         }
175         ref.invoke(call);
176         ref.done(call);
177         }
178     } catch (java.lang.RuntimeException JavaDoc e) {
179         throw e;
180     } catch (java.rmi.RemoteException JavaDoc e) {
181         throw e;
182     } catch (javax.ejb.RemoveException JavaDoc e) {
183         throw e;
184     } catch (java.lang.Exception JavaDoc e) {
185         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
186     }
187     }
188     
189     // implementation of remove(Handle)
190
public void remove(javax.ejb.Handle JavaDoc $param_Handle_1)
191     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
192     {
193     try {
194         if (useNewInvoke) {
195         ref.invoke(this, $method_remove_4, new java.lang.Object JavaDoc[] {$param_Handle_1}, 1121126102706750000L);
196         } else {
197         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
198         try {
199             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
200             out.writeObject($param_Handle_1);
201         } catch (java.io.IOException JavaDoc e) {
202             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
203         }
204         ref.invoke(call);
205         ref.done(call);
206         }
207     } catch (java.lang.RuntimeException JavaDoc e) {
208         throw e;
209     } catch (java.rmi.RemoteException JavaDoc e) {
210         throw e;
211     } catch (javax.ejb.RemoveException JavaDoc e) {
212         throw e;
213     } catch (java.lang.Exception JavaDoc e) {
214         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
215     }
216     }
217 }
218
Popular Tags