KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASEngine_911450835Remote_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 JOnASEngine_911450835Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.Engine, java.rmi.Remote JavaDoc, javax.ejb.EJBObject JavaDoc
9 {
10     private static final java.rmi.server.Operation JavaDoc[] operations = {
11     new java.rmi.server.Operation JavaDoc("void activeAgent(java.lang.String, java.lang.String)"),
12     new java.rmi.server.Operation JavaDoc("void cancelActivity(java.lang.String, java.lang.String)"),
13     new java.rmi.server.Operation JavaDoc("javax.ejb.EJBHome getEJBHome()"),
14     new java.rmi.server.Operation JavaDoc("javax.ejb.Handle getHandle()"),
15     new java.rmi.server.Operation JavaDoc("java.lang.Object getPrimaryKey()"),
16     new java.rmi.server.Operation JavaDoc("boolean isIdentical(javax.ejb.EJBObject)"),
17     new java.rmi.server.Operation JavaDoc("void remove()"),
18     new java.rmi.server.Operation JavaDoc("void resumeActivity(java.lang.String, java.lang.String)"),
19     new java.rmi.server.Operation JavaDoc("void startActivity(java.lang.String, java.lang.String)"),
20     new java.rmi.server.Operation JavaDoc("void suspendActivity(java.lang.String, java.lang.String)"),
21     new java.rmi.server.Operation JavaDoc("void terminate(java.lang.String)"),
22     new java.rmi.server.Operation JavaDoc("void terminateActivity(java.lang.String, java.lang.String)")
23     };
24     
25     private static final long interfaceHash = -4626119076156950680L;
26     
27     private static final long serialVersionUID = 2;
28     
29     private static boolean useNewInvoke;
30     private static java.lang.reflect.Method JavaDoc $method_activeAgent_0;
31     private static java.lang.reflect.Method JavaDoc $method_cancelActivity_1;
32     private static java.lang.reflect.Method JavaDoc $method_getEJBHome_2;
33     private static java.lang.reflect.Method JavaDoc $method_getHandle_3;
34     private static java.lang.reflect.Method JavaDoc $method_getPrimaryKey_4;
35     private static java.lang.reflect.Method JavaDoc $method_isIdentical_5;
36     private static java.lang.reflect.Method JavaDoc $method_remove_6;
37     private static java.lang.reflect.Method JavaDoc $method_resumeActivity_7;
38     private static java.lang.reflect.Method JavaDoc $method_startActivity_8;
39     private static java.lang.reflect.Method JavaDoc $method_suspendActivity_9;
40     private static java.lang.reflect.Method JavaDoc $method_terminate_10;
41     private static java.lang.reflect.Method JavaDoc $method_terminateActivity_11;
42     
43     static {
44     try {
45         java.rmi.server.RemoteRef JavaDoc.class.getMethod("invoke",
46         new java.lang.Class JavaDoc[] {
47             java.rmi.Remote JavaDoc.class,
48             java.lang.reflect.Method JavaDoc.class,
49             java.lang.Object JavaDoc[].class,
50             long.class
51         });
52         useNewInvoke = true;
53         $method_activeAgent_0 = hero.interfaces.Engine.class.getMethod("activeAgent", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
54         $method_cancelActivity_1 = hero.interfaces.Engine.class.getMethod("cancelActivity", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
55         $method_getEJBHome_2 = javax.ejb.EJBObject JavaDoc.class.getMethod("getEJBHome", new java.lang.Class JavaDoc[] {});
56         $method_getHandle_3 = javax.ejb.EJBObject JavaDoc.class.getMethod("getHandle", new java.lang.Class JavaDoc[] {});
57         $method_getPrimaryKey_4 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
58         $method_isIdentical_5 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject JavaDoc.class});
59         $method_remove_6 = javax.ejb.EJBObject JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {});
60         $method_resumeActivity_7 = hero.interfaces.Engine.class.getMethod("resumeActivity", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
61         $method_startActivity_8 = hero.interfaces.Engine.class.getMethod("startActivity", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
62         $method_suspendActivity_9 = hero.interfaces.Engine.class.getMethod("suspendActivity", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
63         $method_terminate_10 = hero.interfaces.Engine.class.getMethod("terminate", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class});
64         $method_terminateActivity_11 = hero.interfaces.Engine.class.getMethod("terminateActivity", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
65     } catch (java.lang.NoSuchMethodException JavaDoc e) {
66         useNewInvoke = false;
67     }
68     }
69     
70     // constructors
71
public JOnASEngine_911450835Remote_Stub() {
72     super();
73     }
74     public JOnASEngine_911450835Remote_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
75     super(ref);
76     }
77     
78     // methods from remote interfaces
79

80     // implementation of activeAgent(String, String)
81
public void activeAgent(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
82     throws hero.util.EngineException, hero.util.HeroException, java.rmi.RemoteException JavaDoc
83     {
84     try {
85         if (useNewInvoke) {
86         ref.invoke(this, $method_activeAgent_0, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, 287008197940832185L);
87         } else {
88         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
89         try {
90             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
91             out.writeObject($param_String_1);
92             out.writeObject($param_String_2);
93         } catch (java.io.IOException JavaDoc e) {
94             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
95         }
96         ref.invoke(call);
97         ref.done(call);
98         }
99     } catch (java.lang.RuntimeException JavaDoc e) {
100         throw e;
101     } catch (java.rmi.RemoteException JavaDoc e) {
102         throw e;
103     } catch (hero.util.HeroException e) {
104         throw e;
105     } catch (java.lang.Exception JavaDoc e) {
106         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
107     }
108     }
109     
110     // implementation of cancelActivity(String, String)
111
public void cancelActivity(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
112     throws hero.util.EngineException, hero.util.HeroException, java.rmi.RemoteException JavaDoc
113     {
114     try {
115         if (useNewInvoke) {
116         ref.invoke(this, $method_cancelActivity_1, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, -6558703499791540556L);
117         } else {
118         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
119         try {
120             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
121             out.writeObject($param_String_1);
122             out.writeObject($param_String_2);
123         } catch (java.io.IOException JavaDoc e) {
124             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
125         }
126         ref.invoke(call);
127         ref.done(call);
128         }
129     } catch (java.lang.RuntimeException JavaDoc e) {
130         throw e;
131     } catch (java.rmi.RemoteException JavaDoc e) {
132         throw e;
133     } catch (hero.util.HeroException e) {
134         throw e;
135     } catch (java.lang.Exception JavaDoc e) {
136         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
137     }
138     }
139     
140     // implementation of getEJBHome()
141
public javax.ejb.EJBHome JavaDoc getEJBHome()
142     throws java.rmi.RemoteException JavaDoc
143     {
144     try {
145         if (useNewInvoke) {
146         Object JavaDoc $result = ref.invoke(this, $method_getEJBHome_2, null, 3163754803894080547L);
147         return ((javax.ejb.EJBHome JavaDoc) $result);
148         } else {
149         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
150         ref.invoke(call);
151         javax.ejb.EJBHome JavaDoc $result;
152         try {
153             java.io.ObjectInput JavaDoc in = call.getInputStream();
154             $result = (javax.ejb.EJBHome JavaDoc) in.readObject();
155         } catch (java.io.IOException JavaDoc e) {
156             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
157         } catch (java.lang.ClassNotFoundException JavaDoc e) {
158             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
159         } finally {
160             ref.done(call);
161         }
162         return $result;
163         }
164     } catch (java.lang.RuntimeException JavaDoc e) {
165         throw e;
166     } catch (java.rmi.RemoteException JavaDoc e) {
167         throw e;
168     } catch (java.lang.Exception JavaDoc e) {
169         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
170     }
171     }
172     
173     // implementation of getHandle()
174
public javax.ejb.Handle JavaDoc getHandle()
175     throws java.rmi.RemoteException JavaDoc
176     {
177     try {
178         if (useNewInvoke) {
179         Object JavaDoc $result = ref.invoke(this, $method_getHandle_3, null, -1299374689989208114L);
180         return ((javax.ejb.Handle JavaDoc) $result);
181         } else {
182         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
183         ref.invoke(call);
184         javax.ejb.Handle JavaDoc $result;
185         try {
186             java.io.ObjectInput JavaDoc in = call.getInputStream();
187             $result = (javax.ejb.Handle JavaDoc) in.readObject();
188         } catch (java.io.IOException JavaDoc e) {
189             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
190         } catch (java.lang.ClassNotFoundException JavaDoc e) {
191             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
192         } finally {
193             ref.done(call);
194         }
195         return $result;
196         }
197     } catch (java.lang.RuntimeException JavaDoc e) {
198         throw e;
199     } catch (java.rmi.RemoteException JavaDoc e) {
200         throw e;
201     } catch (java.lang.Exception JavaDoc e) {
202         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
203     }
204     }
205     
206     // implementation of getPrimaryKey()
207
public java.lang.Object JavaDoc getPrimaryKey()
208     throws java.rmi.RemoteException JavaDoc
209     {
210     try {
211         if (useNewInvoke) {
212         Object JavaDoc $result = ref.invoke(this, $method_getPrimaryKey_4, null, 4840115071604865751L);
213         return ((java.lang.Object JavaDoc) $result);
214         } else {
215         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
216         ref.invoke(call);
217         java.lang.Object JavaDoc $result;
218         try {
219             java.io.ObjectInput JavaDoc in = call.getInputStream();
220             $result = (java.lang.Object JavaDoc) in.readObject();
221         } catch (java.io.IOException JavaDoc e) {
222             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
223         } catch (java.lang.ClassNotFoundException JavaDoc e) {
224             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
225         } finally {
226             ref.done(call);
227         }
228         return $result;
229         }
230     } catch (java.lang.RuntimeException JavaDoc e) {
231         throw e;
232     } catch (java.rmi.RemoteException JavaDoc e) {
233         throw e;
234     } catch (java.lang.Exception JavaDoc e) {
235         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
236     }
237     }
238     
239     // implementation of isIdentical(EJBObject)
240
public boolean isIdentical(javax.ejb.EJBObject JavaDoc $param_EJBObject_1)
241     throws java.rmi.RemoteException JavaDoc
242     {
243     try {
244         if (useNewInvoke) {
245         Object JavaDoc $result = ref.invoke(this, $method_isIdentical_5, new java.lang.Object JavaDoc[] {$param_EJBObject_1}, -5909123752501984271L);
246         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
247         } else {
248         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
249         try {
250             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
251             out.writeObject($param_EJBObject_1);
252         } catch (java.io.IOException JavaDoc e) {
253             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
254         }
255         ref.invoke(call);
256         boolean $result;
257         try {
258             java.io.ObjectInput JavaDoc in = call.getInputStream();
259             $result = in.readBoolean();
260         } catch (java.io.IOException JavaDoc e) {
261             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
262         } finally {
263             ref.done(call);
264         }
265         return $result;
266         }
267     } catch (java.lang.RuntimeException JavaDoc e) {
268         throw e;
269     } catch (java.rmi.RemoteException JavaDoc e) {
270         throw e;
271     } catch (java.lang.Exception JavaDoc e) {
272         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
273     }
274     }
275     
276     // implementation of remove()
277
public void remove()
278     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
279     {
280     try {
281         if (useNewInvoke) {
282         ref.invoke(this, $method_remove_6, null, -5013858639939630501L);
283         } else {
284         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
285         ref.invoke(call);
286         ref.done(call);
287         }
288     } catch (java.lang.RuntimeException JavaDoc e) {
289         throw e;
290     } catch (java.rmi.RemoteException JavaDoc e) {
291         throw e;
292     } catch (javax.ejb.RemoveException JavaDoc e) {
293         throw e;
294     } catch (java.lang.Exception JavaDoc e) {
295         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
296     }
297     }
298     
299     // implementation of resumeActivity(String, String)
300
public void resumeActivity(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
301     throws hero.util.EngineException, hero.util.HeroException, java.rmi.RemoteException JavaDoc
302     {
303     try {
304         if (useNewInvoke) {
305         ref.invoke(this, $method_resumeActivity_7, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, 1923916695016266138L);
306         } else {
307         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
308         try {
309             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
310             out.writeObject($param_String_1);
311             out.writeObject($param_String_2);
312         } catch (java.io.IOException JavaDoc e) {
313             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
314         }
315         ref.invoke(call);
316         ref.done(call);
317         }
318     } catch (java.lang.RuntimeException JavaDoc e) {
319         throw e;
320     } catch (java.rmi.RemoteException JavaDoc e) {
321         throw e;
322     } catch (hero.util.HeroException e) {
323         throw e;
324     } catch (java.lang.Exception JavaDoc e) {
325         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
326     }
327     }
328     
329     // implementation of startActivity(String, String)
330
public void startActivity(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
331     throws hero.util.EngineException, hero.util.HeroException, java.rmi.RemoteException JavaDoc
332     {
333     try {
334         if (useNewInvoke) {
335         ref.invoke(this, $method_startActivity_8, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, -1050415026701311524L);
336         } else {
337         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 8, interfaceHash);
338         try {
339             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
340             out.writeObject($param_String_1);
341             out.writeObject($param_String_2);
342         } catch (java.io.IOException JavaDoc e) {
343             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
344         }
345         ref.invoke(call);
346         ref.done(call);
347         }
348     } catch (java.lang.RuntimeException JavaDoc e) {
349         throw e;
350     } catch (java.rmi.RemoteException JavaDoc e) {
351         throw e;
352     } catch (hero.util.HeroException e) {
353         throw e;
354     } catch (java.lang.Exception JavaDoc e) {
355         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
356     }
357     }
358     
359     // implementation of suspendActivity(String, String)
360
public void suspendActivity(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
361     throws hero.util.EngineException, hero.util.HeroException, java.rmi.RemoteException JavaDoc
362     {
363     try {
364         if (useNewInvoke) {
365         ref.invoke(this, $method_suspendActivity_9, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, -9110655624488017747L);
366         } else {
367         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 9, interfaceHash);
368         try {
369             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
370             out.writeObject($param_String_1);
371             out.writeObject($param_String_2);
372         } catch (java.io.IOException JavaDoc e) {
373             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
374         }
375         ref.invoke(call);
376         ref.done(call);
377         }
378     } catch (java.lang.RuntimeException JavaDoc e) {
379         throw e;
380     } catch (java.rmi.RemoteException JavaDoc e) {
381         throw e;
382     } catch (hero.util.HeroException e) {
383         throw e;
384     } catch (java.lang.Exception JavaDoc e) {
385         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
386     }
387     }
388     
389     // implementation of terminate(String)
390
public void terminate(java.lang.String JavaDoc $param_String_1)
391     throws hero.util.EngineException, hero.util.HeroException, java.rmi.RemoteException JavaDoc
392     {
393     try {
394         if (useNewInvoke) {
395         ref.invoke(this, $method_terminate_10, new java.lang.Object JavaDoc[] {$param_String_1}, 270079950177138635L);
396         } else {
397         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 10, interfaceHash);
398         try {
399             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
400             out.writeObject($param_String_1);
401         } catch (java.io.IOException JavaDoc e) {
402             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
403         }
404         ref.invoke(call);
405         ref.done(call);
406         }
407     } catch (java.lang.RuntimeException JavaDoc e) {
408         throw e;
409     } catch (java.rmi.RemoteException JavaDoc e) {
410         throw e;
411     } catch (hero.util.HeroException e) {
412         throw e;
413     } catch (java.lang.Exception JavaDoc e) {
414         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
415     }
416     }
417     
418     // implementation of terminateActivity(String, String)
419
public void terminateActivity(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
420     throws hero.util.EngineException, hero.util.HeroException, java.rmi.RemoteException JavaDoc
421     {
422     try {
423         if (useNewInvoke) {
424         ref.invoke(this, $method_terminateActivity_11, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, 4946929374587308844L);
425         } else {
426         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 11, interfaceHash);
427         try {
428             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
429             out.writeObject($param_String_1);
430             out.writeObject($param_String_2);
431         } catch (java.io.IOException JavaDoc e) {
432             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
433         }
434         ref.invoke(call);
435         ref.done(call);
436         }
437     } catch (java.lang.RuntimeException JavaDoc e) {
438         throw e;
439     } catch (java.rmi.RemoteException JavaDoc e) {
440         throw e;
441     } catch (hero.util.HeroException e) {
442         throw e;
443     } catch (java.lang.Exception JavaDoc e) {
444         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
445     }
446     }
447 }
448
Popular Tags