【Java开源代码栏目提醒】:网学会员--在 Java开源代码编辑为广大网友搜集整理了:_User_Stub.java绩等信息,祝愿广大网友取得需要的信息,参考学习。
package com.borland.samples.ejb;
public class _User_Stub extends javax.ejb._EJBObject_Stub implements com.borland.samples.ejb.User, UserOperations {
final public static java.lang.Class _opsClass = com.borland.samples.ejb.UserOperations.class;
public java.lang.String[] _ids () {
return __ids;
}
private static java.lang.String[] __ids = {
"RMI:com.borland.samples.ejb.User:0000000000000000",
"RMI:javax.ejb.EJBObject:0000000000000000"
};
public java.lang.String getCity () throws java.rmi.RemoteException {
try {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
java.lang.String _result;
try {
_output = this._request("_get_city", true);
_input = this._invoke(_output);
_result = org.omg.CORBA.WStringValueHelper.read(_input);
return _result;
}
catch (org.omg.CORBA.portable.ApplicationException _exception) {
final org.omg.CORBA.portable.InputStream in = _exception.getInputStream();
java.lang.String _exception_id = _exception.getId();
//FIX: Wrap original Exception here?
throw new java.rmi.UnexpectedException("Unexpected User Exception: " + _exception_id);
}
catch (org.omg.CORBA.portable.RemarshalException _exception) {
continue;
}
finally {
this._releaseReply(_input);
}
} else {
final org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("_get_city", _opsClass);
if (_so == null) {
continue;
}
final com.borland.samples.ejb.UserOperations _self = (com.borland.samples.ejb.UserOperations)_so.servant;
try {
return _self.getCity();
}
finally {
_servant_postinvoke(_so);
}
}
}
}
catch (org.omg.CORBA.portable.UnknownException ex) {
if (ex.originalEx instanceof java.lang.RuntimeException) {
throw (java.lang.RuntimeException) ex.originalEx;
} else if (ex.originalEx instanceof Exception) {
throw new java.rmi.ServerException(ex.getMessage(), (java.lang.Exception)ex.originalEx);
} else {
throw new java.rmi.ServerError(ex.getMessage(), (java.lang.Error) ex.originalEx);
}
}
catch (org.omg.CORBA.SystemException ex) {
throw javax.rmi.CORBA.Util.mapSystemException(ex);
}
}
public void setCity (java.lang.String city) throws java.rmi.RemoteException {
try {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
try {
_output = this._request("_set_city", true);
org.omg.CORBA.WStringValueHelper.write(_output, city);
_input = this._invoke(_output);
}
catch (org.omg.CORBA.portable.ApplicationException _exception) {
final org.omg.CORBA.portable.InputStream in = _exception.getInputStream();
java.lang.String _exception_id = _exception.getId();
//FIX: Wrap original Exception here?
throw new java.rmi.UnexpectedException("Unexpected User Exception: " + _exception_id);
}
catch (org.omg.CORBA.portable.RemarshalException _exception) {
continue;
}
finally {
this._releaseReply(_input);
}
} else {
final org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("_set_city", _opsClass);
if (_so == null) {
continue;
}
final com.borland.samples.ejb.UserOperations _self = (com.borland.samples.ejb.UserOperations)_so.servant;
try {
_self.setCity(city);
}
finally {
_servant_postinvoke(_so);
}
}
break;
}
}
catch (org.omg.CORBA.portable.UnknownException ex) {
if (ex.originalEx instanceof java.lang.RuntimeException) {
throw (java.lang.RuntimeException) ex.originalEx;
} else if (ex.originalEx instanceof Exception) {
throw new java.rmi.ServerException(ex.getMessage(), (java.lang.