Example #1
0
 /** Operation createCRecord */
 public boolean createCRecord(
     String firstName, String lastName, String description, String status, String badgeId) {
   while (true) {
     if (!this._is_local()) {
       org.omg.CORBA.portable.InputStream _input = null;
       try {
         org.omg.CORBA.portable.OutputStream _output = this._request("createCRecord", true);
         _output.write_string(firstName);
         _output.write_string(lastName);
         _output.write_string(description);
         _output.write_string(status);
         _output.write_string(badgeId);
         _input = this._invoke(_output);
         boolean _arg_ret = _input.read_boolean();
         return _arg_ret;
       } catch (org.omg.CORBA.portable.RemarshalException _exception) {
         continue;
       } catch (org.omg.CORBA.portable.ApplicationException _exception) {
         String _exception_id = _exception.getId();
         throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _exception_id);
       } finally {
         this._releaseReply(_input);
       }
     } else {
       org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("createCRecord", _opsClass);
       if (_so == null) continue;
       RMB_idl.RMBOperations _self = (RMB_idl.RMBOperations) _so.servant;
       try {
         return _self.createCRecord(firstName, lastName, description, status, badgeId);
       } finally {
         _servant_postinvoke(_so);
       }
     }
   }
 }
Example #2
0
 /** Operation getRecordCounts */
 public String getRecordCounts(String badgeId) {
   while (true) {
     if (!this._is_local()) {
       org.omg.CORBA.portable.InputStream _input = null;
       try {
         org.omg.CORBA.portable.OutputStream _output = this._request("getRecordCounts", true);
         _output.write_string(badgeId);
         _input = this._invoke(_output);
         String _arg_ret = _input.read_string();
         return _arg_ret;
       } catch (org.omg.CORBA.portable.RemarshalException _exception) {
         continue;
       } catch (org.omg.CORBA.portable.ApplicationException _exception) {
         String _exception_id = _exception.getId();
         throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _exception_id);
       } finally {
         this._releaseReply(_input);
       }
     } else {
       org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("getRecordCounts", _opsClass);
       if (_so == null) continue;
       RMB_idl.RMBOperations _self = (RMB_idl.RMBOperations) _so.servant;
       try {
         return _self.getRecordCounts(badgeId);
       } finally {
         _servant_postinvoke(_so);
       }
     }
   }
 }