if (op == null) { EjbLogger.ROOT_LOGGER.debugf("Unable to find opname '%s' valid operations:%s", opName, methodInvokerMap.keySet()); throw new BAD_OPERATION(opName); handler.createReply(); if (op.isNonVoid()) { op.writeRetval(out, retVal); handler.createExceptionReply(); op.writeException(out, e);
private org.omg.CORBA.portable.OutputStream _OB_att_get_manual(org.omg.CORBA.portable.InputStream in, org.omg.CORBA.portable.ResponseHandler handler) { boolean _ob_r = manual(); org.omg.CORBA.portable.OutputStream out = handler.createReply(); out.write_boolean(_ob_r); return out; }
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // get_trigger_value { _out = handler.createReply(); _out.write_boolean(get_trigger_value()); break; } } return _out; }
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // disconnect_push_supplier { _out = handler.createReply(); disconnect_push_supplier(); break; } } return _out; }
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // pulse { _out = handler.createReply(); pulse(); break; } } return _out; }
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // pulse { try { _out = handler.createReply(); pulse(); } catch(org.csapi.TpCommonExceptions _ex0) { _out = handler.createExceptionReply(); org.csapi.TpCommonExceptionsHelper.write(_out, _ex0); } break; } } return _out; }
public org.omg.CORBA.portable.OutputStream _invoke (String $method, org.omg.CORBA.portable.InputStream in, org.omg.CORBA.portable.ResponseHandler $rh) { org.omg.CORBA.portable.OutputStream out = null; java.lang.Integer __method = (java.lang.Integer)_methods.get ($method); if (__method == null) throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); switch (__method.intValue ()) { /** Method used to cause ORB to activate the named adapter, if possible. * This will cause the named POA to register itself with the activator as * a side effect. This should always happen before this call can complete. * This method returns true if adapter activation succeeded, otherwise it * returns false. */ case 0: // PortableActivationIDL/ORBProxy/activate_adapter { String name[] = org.omg.PortableInterceptor.AdapterNameHelper.read (in); boolean $result = false; $result = this.activate_adapter (name); out = $rh.createReply(); out.write_boolean ($result); break; } default: throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); } return out; } // _invoke
private org.omg.CORBA.portable.OutputStream _OB_op_destroy(org.omg.CORBA.portable.InputStream in, org.omg.CORBA.portable.ResponseHandler handler) { org.omg.CORBA.portable.OutputStream out = null; try { destroy(); out = handler.createReply(); } catch(ServerRunning _ob_ex) { out = handler.createExceptionReply(); ServerRunningHelper.write(out, _ob_ex); } return out; }
public OutputStream _invoke(String method, InputStream _in, ResponseHandler reply) throws SystemException { try { org.omg.CORBA_2_3.portable.InputStream in = (org.omg.CORBA_2_3.portable.InputStream)_in; if (method.equals("executeCommand")) { Command arg0 = (Command)in.read_value(Command.class); Object result = target.executeCommand(arg0); OutputStream out = reply.createReply(); Util.writeAny(out, result); return out; } throw new BAD_OPERATION(); } catch (SystemException ex) { throw ex; } catch (Throwable ex) { throw new UnknownException(ex); } } }
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // do_on { org.omg.CORBA.Any _arg0=_input.read_any(); _out = handler.createReply(); _out.write_boolean(do_on(_arg0)); break; } } return _out; }
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // drop_locks { _out = handler.createReply(); drop_locks(); break; } } return _out; }
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // sessionAborted { int _arg0=_input.read_long(); _out = handler.createReply(); sessionAborted(_arg0); break; } } return _out; }
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // pulse { try { _out = handler.createReply(); pulse(); } catch(org.csapi.TpCommonExceptions _ex0) { _out = handler.createExceptionReply(); org.csapi.TpCommonExceptionsHelper.write(_out, _ex0); } break; } } return _out; }
java.lang.Integer __method = (java.lang.Integer)_methods.get ($method); if (__method == null) throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); boolean $result = false; $result = this.audit_needed (event_type, value_list); out = $rh.createReply(); out.write_boolean ($result); break; out = $rh.createReply(); org.omg.SecurityLevel2.AuditChannelHelper.write (out, $result); break; throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
private org.omg.CORBA.portable.OutputStream _OB_op_start(org.omg.CORBA.portable.InputStream in, org.omg.CORBA.portable.ResponseHandler handler) { org.omg.CORBA.portable.OutputStream out = null; try { start(); out = handler.createReply(); } catch(ServerRunning _ob_ex) { out = handler.createExceptionReply(); ServerRunningHelper.write(out, _ob_ex); } return out; }
private org.omg.CORBA.portable.OutputStream _OB_att_get_reply_available(org.omg.CORBA.portable.InputStream in, org.omg.CORBA.portable.ResponseHandler handler) { boolean _ob_r = reply_available(); org.omg.CORBA.portable.OutputStream out = handler.createReply(); out.write_boolean(_ob_r); return out; }
public OutputStream _invoke(String method, InputStream _in, ResponseHandler reply) throws SystemException { try { org.omg.CORBA_2_3.portable.InputStream in = (org.omg.CORBA_2_3.portable.InputStream)_in; if (method.equals("executeCommand")) { Command arg0 = (Command)in.read_value(Command.class); Object result = target.executeCommand(arg0); OutputStream out = reply.createReply(); Util.writeAny(out, result); return out; } throw new BAD_OPERATION(); } catch (SystemException ex) { throw ex; } catch (Throwable ex) { throw new UnknownException(ex); } } }
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // set_trigger_value { boolean _arg0=_input.read_boolean(); _out = handler.createReply(); set_trigger_value(_arg0); break; } case 1: // get_trigger_value { _out = handler.createReply(); _out.write_boolean(get_trigger_value()); break; } } return _out; }
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // disconnect_pull_consumer { _out = handler.createReply(); disconnect_pull_consumer(); break; } } return _out; }
public org.omg.CORBA.portable.OutputStream _invoke (String $method, org.omg.CORBA.portable.InputStream in, org.omg.CORBA.portable.ResponseHandler $rh) { org.omg.CORBA.portable.OutputStream out = null; java.lang.Integer __method = (java.lang.Integer)_methods.get ($method); if (__method == null) throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); switch (__method.intValue ()) { case 0: // CosTransactions/Synchronization/before_completion { this.before_completion (); out = $rh.createReply(); break; } case 1: // CosTransactions/Synchronization/after_completion { org.omg.CosTransactions.Status s = org.omg.CosTransactions.StatusHelper.read (in); this.after_completion (s); out = $rh.createReply(); break; } default: throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); } return out; } // _invoke