Examples of BAD_OPERATION


Examples of org.omg.CORBA.BAD_OPERATION

  public OutputStream _invoke(String method, InputStream in, ResponseHandler rh)
  {
    OutputStream out = null;
    Integer __method = (Integer) _methods.get(method);
    if (__method == null)
      throw new BAD_OPERATION(method, 0, CompletionStatus.COMPLETED_MAYBE);

    switch (__method.intValue())
      {
        /**
         * Set the name of POA to that subsequent operations
         * will apply. This POA must be the child of the POA
         * to that this remotePoaControl servant is connected.
         */
        case 0 : // gnu/classpath/examples/CORBA/SimpleCommunication/communication/remotePoaControl/setControlTarget
        {
          String child_poa_name = in.read_string();
          this.setControlTarget(child_poa_name);
          out = rh.createReply();
          break;
        }

        /**
             * Set the mode of the POA being controlled (active,
             * holding, discarding, deactivated).
             */
        case 1 : // gnu/classpath/examples/CORBA/SimpleCommunication/communication/remotePoaControl/setPoaMode
        {
          int mode = in.read_long();
          this.setPoaMode(mode);
          out = rh.createReply();
          break;
        }

        /**
             * Get the mode of POA being controlled.
             */
        case 2 : // gnu/classpath/examples/CORBA/SimpleCommunication/communication/remotePoaControl/getPoaMode
        {
          int result = getPoaMode();
          out = rh.createReply();
          out.write_long(result);
          break;
        }

        default :
          throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE);
      }

    return out;
  } // _invoke
View Full Code Here

Examples of org.omg.CORBA.BAD_OPERATION

  {
    String name = request.operation();

    if (!name.equals("aMethod"))
      {
        throw new BAD_OPERATION();
      }

    //
    // 8.3.1: "Unless it calls set_exception, the DIR must call arguments
    // exactly once, even if the operation signature contains no
View Full Code Here

Examples of org.omg.CORBA.BAD_OPERATION

                  org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();
                  out.write_value(result, String.class);
                  return out;
                }
          }
        throw new BAD_OPERATION();
      }
    catch (SystemException ex)
      {
        throw ex;
      }
View Full Code Here

Examples of org.omg.CORBA.BAD_OPERATION

    NVList list = orb_.create_list(0);
    request.arguments(list);

    Any exAny = orb_.create_any();
    exAny.insert_Streamable(new BAD_OPERATIONHolder(new BAD_OPERATION()));

    // BAD_OPERATIONHelper.insert(any, new BAD_OPERATION());
    // Modified by Audrius Meskauskas
    request.set_exception(exAny);
  }
View Full Code Here

Examples of org.omg.CORBA.BAD_OPERATION

      throw new RuntimeException("Id value mismath: '" + ri + "' expected '" +
                                 id + "'"
                                );

    CompletionStatus status = CompletionStatusHelper.read(input);
    value = new BAD_OPERATION(minor, status);
  }
View Full Code Here

Examples of org.omg.CORBA.BAD_OPERATION

  public OutputStream _invoke(String $method, InputStream in, ResponseHandler rh)
  {
    OutputStream out = null;
    Integer __method = (Integer) _methods.get($method);
    if (__method == null)
      throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE);

    switch (__method.intValue())
      {
        case 0 : // test/poa/TestLocationForward/deactivate_servant
        {
          this.deactivate_servant();
          out = rh.createReply();
          break;
        }

        case 1 : // test/poa/Test/aMethod
        {
          this.aMethod();
          out = rh.createReply();
          break;
        }

        default :
          throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE);
      }

    return out;
  } // _invoke
View Full Code Here

Examples of org.omg.CORBA.BAD_OPERATION

            logger.trace("EJBHome IIOP invocation: " + opName);
        }
        final SkeletonStrategy op = methodInvokerMap.get(opName);
        if (op == null) {
            logger.debug("Unable to find opname '" + opName + "' valid operations:" + methodInvokerMap.keySet());
            throw new BAD_OPERATION(opName);
        }

        org.omg.CORBA_2_3.portable.OutputStream out;
        try {
            Object retVal;
View Full Code Here

Examples of org.omg.CORBA.BAD_OPERATION

            logger.trace("EJBHome local invocation: " + opName);
        }

        SkeletonStrategy op = methodInvokerMap.get(opName);
        if (op == null) {
            throw new BAD_OPERATION(opName);
        }

        if (tx != null) {
            transactionManager.resume(tx);
        }
View Full Code Here

Examples of org.omg.CORBA.BAD_OPERATION

        }

        SkeletonStrategy op = methodInvokerMap.get(opName);
        if (op == null) {
            logger.debug("Unable to find opname '" + opName + "' valid operations:" + methodInvokerMap.keySet());
            throw new BAD_OPERATION(opName);
        }

        org.omg.CORBA_2_3.portable.OutputStream out;
        try {
            final Object retVal;
View Full Code Here

Examples of org.omg.CORBA.BAD_OPERATION

            logger.trace("EJBObject local invocation: " + opName);
        }

        SkeletonStrategy op = methodInvokerMap.get(opName);
        if (op == null) {
            throw new BAD_OPERATION(opName);
        }
        if (tx != null) {
            transactionManager.resume(tx);
        }
        try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.