01: /**
02: * EasyBeans Copyright (C) 2006 Bull S.A.S. Contact: easybeans@ow2.org
03: * This library is free software; you can redistribute it and/or modify it under
04: * the terms of the GNU Lesser General Public License as published by the Free
05: * Software Foundation; either version 2.1 of the License, or any later version.
06: * This library is distributed in the hope that it will be useful, but WITHOUT
07: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
08: * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
09: * details. You should have received a copy of the GNU Lesser General Public
10: * License along with this library; if not, write to the Free Software
11: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
12: * --------------------------------------------------------------------------
13: * $Id: RMIServerRPCImpl_Stub.java 1970 2007-10-16 11:49:25Z benoitf $
14: * --------------------------------------------------------------------------
15: */package org.ow2.easybeans.rpc.rmi.server;
16:
17: public final class RMIServerRPCImpl_Stub extends
18: java.rmi.server.RemoteStub implements
19: org.ow2.easybeans.rpc.rmi.server.RMIServerRPC {
20: private static final long serialVersionUID = 2;
21:
22: private static java.lang.reflect.Method $method_getEJBResponse_0;
23:
24: static {
25: try {
26: $method_getEJBResponse_0 = org.ow2.easybeans.rpc.rmi.server.RMIServerRPC.class
27: .getMethod(
28: "getEJBResponse",
29: new java.lang.Class[] { org.ow2.easybeans.rpc.api.EJBRequest.class });
30: } catch (java.lang.NoSuchMethodException e) {
31: throw new java.lang.NoSuchMethodError(
32: "stub class initialization failed");
33: }
34: }
35:
36: // constructors
37: public RMIServerRPCImpl_Stub(java.rmi.server.RemoteRef ref) {
38: super (ref);
39: }
40:
41: // methods from remote interfaces
42:
43: // implementation of getEJBResponse(EJBRequest)
44: public org.ow2.easybeans.rpc.api.EJBResponse getEJBResponse(
45: org.ow2.easybeans.rpc.api.EJBRequest $param_EJBRequest_1)
46: throws java.rmi.RemoteException {
47: try {
48: Object $result = ref.invoke(this , $method_getEJBResponse_0,
49: new java.lang.Object[] { $param_EJBRequest_1 },
50: 5222152578988208233L);
51: return ((org.ow2.easybeans.rpc.api.EJBResponse) $result);
52: } catch (java.lang.RuntimeException e) {
53: throw e;
54: } catch (java.rmi.RemoteException e) {
55: throw e;
56: } catch (java.lang.Exception e) {
57: throw new java.rmi.UnexpectedException(
58: "undeclared checked exception", e);
59: }
60: }
61: }
|