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 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 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: // systemDateTimeQuery { java.lang.String _arg0=_input.read_string(); _out = handler.createReply(); _out.write_string(systemDateTimeQuery(_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: // 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 { _out = handler.createReply(); pulse(); 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: // XA/BeforeCompletionCallback/before_completion { org.omg.CosTransactions.Coordinator tx = org.omg.CosTransactions.CoordinatorHelper.read (in); org.omg.CosTransactions.otid_t otid = org.omg.CosTransactions.otid_tHelper.read (in); boolean success = in.read_boolean (); this.before_completion (tx, otid, success); out = $rh.createReply(); 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 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 ()) { // bind initial name case 0: // activation/InitialNameService/bind { try { String name = in.read_string (); org.omg.CORBA.Object obj = org.omg.CORBA.ObjectHelper.read (in); boolean isPersistant = in.read_boolean (); this.bind (name, obj, isPersistant); out = $rh.createReply(); } catch (com.sun.corba.se.spi.activation.InitialNameServicePackage.NameAlreadyBound $ex) { out = $rh.createExceptionReply (); com.sun.corba.se.spi.activation.InitialNameServicePackage.NameAlreadyBoundHelper.write (out, $ex); } break; } default: throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); } return out; } // _invoke
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() ) _out = handler.createReply(); _out.write_long(createNotification(_arg0)); _out = handler.createExceptionReply(); org.csapi.P_INVALID_EVENT_TYPEHelper.write(_out, _ex0); _out = handler.createExceptionReply(); org.csapi.TpCommonExceptionsHelper.write(_out, _ex1); int _arg0=_input.read_long(); _out = handler.createReply(); destroyNotification(_arg0);
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); org.omg.TimeBase.UtcT time = org.omg.Security.UtcTHelper.read (in); org.omg.Security.SelectorValue descriptors[] = org.omg.Security.SelectorValueListHelper.read (in); org.omg.CORBA.Any event_specific_data = in.read_any (); this.audit_write (event_type, creds, time, descriptors, event_specific_data); out = $rh.createReply(); break; out = $rh.createReply(); out.write_ulong ($result); break; throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
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: // hydraulique/IGroupeProprietes/_get_type { int $result = (int)0; $result = this.type (); out = $rh.createReply(); out.write_long ($result); break; } case 1: // hydraulique/IGroupeProprietes/_set_type { int newType = org.fudaa.dodico.corba.base.EntierHelper.read (in); this.type (newType); out = $rh.createReply(); break; } default: throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); } return out; } // _invoke
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); out = $rh.createReply(); out.write_TypeCode ($result); break; out = $rh.createReply(); org.omg.CORBA.DefinitionKindHelper.write (out, $result); break; out = $rh.createReply(); break; throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
public static short extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION(); }
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 static void write (org.omg.CORBA.portable.OutputStream ostream, com.sun.corba.se.impl.protocol.giopmsgheaders.TargetAddress value) { ostream.write_short (value.discriminator ()); switch (value.discriminator ()) { case com.sun.corba.se.impl.protocol.giopmsgheaders.KeyAddr.value: ostream.write_long (value.object_key ().length); ostream.write_octet_array (value.object_key (), 0, value.object_key ().length); break; case com.sun.corba.se.impl.protocol.giopmsgheaders.ProfileAddr.value: org.omg.IOP.TaggedProfileHelper.write (ostream, value.profile ()); break; case com.sun.corba.se.impl.protocol.giopmsgheaders.ReferenceAddr.value: com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfoHelper.write (ostream, value.ior ()); break; default: throw new org.omg.CORBA.BAD_OPERATION (); } }
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_domain_policy { int _arg0=_input.read_ulong(); _out = handler.createReply(); org.omg.CORBA.PolicyHelper.write(_out,get_domain_policy(_arg0)); break; } } return _out; }
throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) int _arg0=_input.read_ulong(); _out = handler.createReply(); _out.write_long(set_enabled_statuses(_arg0)); break; _out = handler.createReply(); _out.write_boolean(get_trigger_value()); break; _out = handler.createReply(); org.omg.dds.EntityHelper.write(_out,get_entity()); break; _out = handler.createReply(); _out.write_ulong(get_enabled_statuses()); break;
public BAD_OPERATION connectingServant(CompletionStatus cs, Throwable t) { BAD_OPERATION exc = new BAD_OPERATION(CONNECTING_SERVANT, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "ORBUTIL.connectingServant", parameters, ORBUtilSystemException.class, exc); } return exc; }
throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) _out = handler.createReply(); _out.write_ulong(policy_type()); break; _out = handler.createReply(); org.omg.CORBA.PolicyHelper.write(_out,copy()); break; boolean _arg1=_input.read_boolean(); _out = handler.createReply(); make_domain_manager(_arg0,_arg1); break;
public static BAD_OPERATION read(org.omg.CORBA.portable.InputStream in) { if (!id().equals(in.read_string())) throw new MARSHAL(); BAD_OPERATION val = new BAD_OPERATION(); val.minor = in.read_ulong(); val.completed = CompletionStatus.from_int(in.read_ulong()); return val; }
throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) _out = handler.createReply(); _out.write_long(get_system_load()); break; java.lang.String _arg0=_input.read_string(); _out = handler.createReply(); start_server(_arg0); _out = handler.createExceptionReply(); org.jacorb.imr.ServerStartupFailedHelper.write(_out, _ex0);