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