use of org.omg.CORBA.portable.ServantObject in project jdk8u_jdk by JetBrains.
the class _HelloInterface_Stub method sayHelloWithHashMap2.
public String sayHelloWithHashMap2(HashMap 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("sayHelloWithHashMap2", true);
out.write_value(arg0, HashMap.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 sayHelloWithHashMap2(arg0);
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("sayHelloWithHashMap2", HelloInterface.class);
if (so == null) {
return sayHelloWithHashMap2(arg0);
}
try {
HashMap arg0Copy = (HashMap) Util.copyObject(arg0, _orb());
return ((HelloInterface) so.servant).sayHelloWithHashMap2(arg0Copy);
} 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 sayHello.
public String sayHello(String 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("sayHello", true);
out.write_value(arg0, 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 sayHello(arg0);
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("sayHello", HelloInterface.class);
if (so == null) {
return sayHello(arg0);
}
try {
return ((HelloInterface) so.servant).sayHello(arg0);
} 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 String heartbeat() throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
OutputStream out = _request("heartbeat__", true);
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 heartbeat();
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("heartbeat__", JRouter.class);
if (so == null) {
return heartbeat();
}
try {
return ((JRouter) so.servant).heartbeat();
} 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 startup.
public void startup() throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA.portable.InputStream in = null;
try {
OutputStream out = _request("startup", true);
_invoke(out);
} catch (ApplicationException ex) {
in = ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
startup();
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("startup", JRouter.class);
if (so == null) {
startup();
return;
}
try {
((JRouter) so.servant).startup();
} 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 shutdown.
public void shutdown() throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA.portable.InputStream in = null;
try {
OutputStream out = _request("shutdown", true);
_invoke(out);
} catch (ApplicationException ex) {
in = ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
shutdown();
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("shutdown", JRouter.class);
if (so == null) {
shutdown();
return;
}
try {
((JRouter) so.servant).shutdown();
} catch (Throwable ex) {
Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
Aggregations