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);
public static org.jacorb.imr.HostInfo[] extract (final org.omg.CORBA.Any any) { if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null) { throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type."); } return read (any.create_input_stream ()); }
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: // 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: // 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
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: // 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 ()) { /** * Retourne l'operation en cours et un pourcentage d'achevement. * De la forme "operation":"%%" */ case 0: // calcul/IProgression/progression { org.fudaa.dodico.corba.calcul.SProgression $result = null; $result = this.progression (); out = $rh.createReply(); org.fudaa.dodico.corba.calcul.SProgressionHelper.write (out, $result); break; } default: throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); } return out; } // _invoke
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 ()) { case 0: // SecurityLevel2/AccessDecision/access_allowed { org.omg.SecurityLevel2.Credentials cred_list[] = org.omg.SecurityLevel2.CredentialsListHelper.read (in); org.omg.CORBA.Object target = org.omg.CORBA.ObjectHelper.read (in); String operation_name = org.omg.CORBA.IdentifierHelper.read (in); String target_interface_name = org.omg.CORBA.IdentifierHelper.read (in); boolean $result = false; $result = this.access_allowed (cred_list, target, operation_name, target_interface_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
public static org.jacorb.imr.POAInfo[] extract (final org.omg.CORBA.Any any) { if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null) { throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type."); } return read (any.create_input_stream ()); }
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: // drop_locks { _out = handler.createReply(); drop_locks(); 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:// org/eclipse/persistence/internal/remotecommand/corba/sun/SunCORBAConnection/executeCommand { byte[] commandData = org.eclipse.persistence.internal.sessions.coordination.corba.sun.CommandDataHelper.read(in); byte[] $result = null; $result = this.executeCommand(commandData); out = $rh.createReply(); org.eclipse.persistence.internal.sessions.coordination.corba.sun.CommandDataHelper.write(out, $result); break; } default: throw new org.omg.CORBA.BAD_OPERATION(0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); } return out; } // _invoke
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);