use of org.omg.CORBA.portable.ServantObject in project JFramework by gugumall.
the class _JRouter_Stub method service.
public ServiceBase service(String arg0, String arg1, String arg2) throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) _request("service__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue", true);
out.write_value(arg0, String.class);
out.write_value(arg1, String.class);
out.write_value(arg2, String.class);
in = (org.omg.CORBA_2_3.portable.InputStream) _invoke(out);
return (ServiceBase) PortableRemoteObject.narrow(in.read_Object(), ServiceBase.class);
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
return service(arg0, arg1, arg2);
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("service__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue", JRouter.class);
if (so == null) {
return service(arg0, arg1, arg2);
}
try {
ServiceBase result = ((JRouter) so.servant).service(arg0, arg1, arg2);
return (ServiceBase) Util.copyObject(result, _orb());
} catch (Throwable ex) {
Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
use of org.omg.CORBA.portable.ServantObject in project JFramework by gugumall.
the class _JRouter_Stub method service.
public void service(JSession arg0, HttpSession arg1, HttpServletRequest arg2, HttpServletResponse arg3) throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) _request("service__j_app_webserver_JSession__javax_servlet_http_HttpSession__javax_servlet_http_HttpServletRequest__javax_servlet_http_HttpServletResponse", true);
out.write_value((Serializable) arg0, JSession.class);
out.write_value((Serializable) arg1, HttpSession.class);
out.write_value((Serializable) arg2, HttpServletRequest.class);
out.write_value((Serializable) arg3, HttpServletResponse.class);
_invoke(out);
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
service(arg0, arg1, arg2, arg3);
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("service__j_app_webserver_JSession__javax_servlet_http_HttpSession__javax_servlet_http_HttpServletRequest__javax_servlet_http_HttpServletResponse", JRouter.class);
if (so == null) {
service(arg0, arg1, arg2, arg3);
return;
}
try {
Object[] copies = Util.copyObjects(new Object[] { arg0, arg1, arg2, arg3 }, _orb());
JSession arg0Copy = (JSession) copies[0];
HttpSession arg1Copy = (HttpSession) copies[1];
HttpServletRequest arg2Copy = (HttpServletRequest) copies[2];
HttpServletResponse arg3Copy = (HttpServletResponse) copies[3];
((JRouter) so.servant).service(arg0Copy, arg1Copy, arg2Copy, arg3Copy);
} catch (Throwable ex) {
Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
use of org.omg.CORBA.portable.ServantObject in project JFramework by gugumall.
the class _JRouter_Stub method register.
public String register(String arg0, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6) throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) _request("register__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue", true);
out.write_value(arg0, String.class);
out.write_value(arg1, String.class);
out.write_value(arg2, String.class);
out.write_value(arg3, String.class);
out.write_value(arg4, String.class);
out.write_value(arg5, String.class);
out.write_value(arg6, String.class);
in = (org.omg.CORBA_2_3.portable.InputStream) _invoke(out);
return (String) in.read_value(String.class);
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
return register(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("register__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue", JRouter.class);
if (so == null) {
return register(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
}
try {
return ((JRouter) so.servant).register(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
} catch (Throwable ex) {
Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
use of org.omg.CORBA.portable.ServantObject in project JFramework by gugumall.
the class _JRouter_Stub method heartbeat.
public void heartbeat(JSession arg0, HttpSession arg1, HttpServletRequest arg2, HttpServletResponse arg3) throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) _request("heartbeat__j_app_webserver_JSession__javax_servlet_http_HttpSession__javax_servlet_http_HttpServletRequest__javax_servlet_http_HttpServletResponse", true);
out.write_value((Serializable) arg0, JSession.class);
out.write_value((Serializable) arg1, HttpSession.class);
out.write_value((Serializable) arg2, HttpServletRequest.class);
out.write_value((Serializable) arg3, HttpServletResponse.class);
_invoke(out);
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
heartbeat(arg0, arg1, arg2, arg3);
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("heartbeat__j_app_webserver_JSession__javax_servlet_http_HttpSession__javax_servlet_http_HttpServletRequest__javax_servlet_http_HttpServletResponse", JRouter.class);
if (so == null) {
heartbeat(arg0, arg1, arg2, arg3);
return;
}
try {
Object[] copies = Util.copyObjects(new Object[] { arg0, arg1, arg2, arg3 }, _orb());
JSession arg0Copy = (JSession) copies[0];
HttpSession arg1Copy = (HttpSession) copies[1];
HttpServletRequest arg2Copy = (HttpServletRequest) copies[2];
HttpServletResponse arg3Copy = (HttpServletResponse) copies[3];
((JRouter) so.servant).heartbeat(arg0Copy, arg1Copy, arg2Copy, arg3Copy);
} catch (Throwable ex) {
Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
use of org.omg.CORBA.portable.ServantObject in project jdk8u_jdk by JetBrains.
the class _HelloInterface_Stub method sayHelloWithTest3.
public Test3 sayHelloWithTest3(Test3 arg0) throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) _request("sayHelloWithTest3", true);
out.write_value(arg0, Test3.class);
in = (org.omg.CORBA_2_3.portable.InputStream) _invoke(out);
return (Test3) in.read_value(Test3.class);
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
return sayHelloWithTest3(arg0);
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("sayHelloWithTest3", HelloInterface.class);
if (so == null) {
return sayHelloWithTest3(arg0);
}
try {
Test3 arg0Copy = (Test3) Util.copyObject(arg0, _orb());
Test3 result = ((HelloInterface) so.servant).sayHelloWithTest3(arg0Copy);
return (Test3) Util.copyObject(result, _orb());
} catch (Throwable ex) {
Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
Aggregations