Java Code Examples for org.omg.CORBA.portable.ResponseHandler

The following are top voted examples for showing how to use org.omg.CORBA.portable.ResponseHandler. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: javify   File: ServantLocatorPOA.java   Source Code and License 5 votes vote down vote up
/**
 * Our implementation will not call this method. After setting your
 * manager to POA, it will call incarnate and etherialize directly.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  throw new NO_IMPLEMENT();
}
 
Example 2
Project: javify   File: ServantActivatorPOA.java   Source Code and License 5 votes vote down vote up
/**
 * Our implementation will not call this method. After setting your
 * manager to POA, it will call incarnate and etherialize directly.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  throw new NO_IMPLEMENT();
}
 
Example 3
Project: javify   File: DynamicImpHandler.java   Source Code and License 5 votes vote down vote up
/**
 * We cannot invoke properly without having parameter info.
 *
 * @throws BAD_OPERATION, always.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
{
  throw new BAD_OPERATION(servant + " is not an InvokeHandler.");
}
 
Example 4
Project: jvm-stm   File: ServantLocatorPOA.java   Source Code and License 5 votes vote down vote up
/**
 * Our implementation will not call this method. After setting your
 * manager to POA, it will call incarnate and etherialize directly.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  throw new NO_IMPLEMENT();
}
 
Example 5
Project: jvm-stm   File: ServantActivatorPOA.java   Source Code and License 5 votes vote down vote up
/**
 * Our implementation will not call this method. After setting your
 * manager to POA, it will call incarnate and etherialize directly.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  throw new NO_IMPLEMENT();
}
 
Example 6
Project: jvm-stm   File: DynamicImpHandler.java   Source Code and License 5 votes vote down vote up
/**
 * We cannot invoke properly without having parameter info.
 *
 * @throws BAD_OPERATION, always.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
{
  throw new BAD_OPERATION(servant + " is not an InvokeHandler.");
}
 
Example 7
Project: JamVM-PH   File: ServantLocatorPOA.java   Source Code and License 5 votes vote down vote up
/**
 * Our implementation will not call this method. After setting your
 * manager to POA, it will call incarnate and etherialize directly.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  throw new NO_IMPLEMENT();
}
 
Example 8
Project: JamVM-PH   File: ServantActivatorPOA.java   Source Code and License 5 votes vote down vote up
/**
 * Our implementation will not call this method. After setting your
 * manager to POA, it will call incarnate and etherialize directly.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  throw new NO_IMPLEMENT();
}
 
Example 9
Project: JamVM-PH   File: DynamicImpHandler.java   Source Code and License 5 votes vote down vote up
/**
 * We cannot invoke properly without having parameter info.
 *
 * @throws BAD_OPERATION, always.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
{
  throw new BAD_OPERATION(servant + " is not an InvokeHandler.");
}
 
Example 10
Project: classpath   File: ServantLocatorPOA.java   Source Code and License 5 votes vote down vote up
/**
 * Our implementation will not call this method. After setting your
 * manager to POA, it will call incarnate and etherialize directly.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  throw new NO_IMPLEMENT();
}
 
Example 11
Project: classpath   File: ServantActivatorPOA.java   Source Code and License 5 votes vote down vote up
/**
 * Our implementation will not call this method. After setting your
 * manager to POA, it will call incarnate and etherialize directly.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  throw new NO_IMPLEMENT();
}
 
Example 12
Project: classpath   File: DynamicImpHandler.java   Source Code and License 5 votes vote down vote up
/**
 * We cannot invoke properly without having parameter info.
 *
 * @throws BAD_OPERATION, always.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
{
  throw new BAD_OPERATION(servant + " is not an InvokeHandler.");
}
 
Example 13
Project: javify   File: ForwardedServant.java   Source Code and License 4 votes vote down vote up
/**
 * Forward the call to the wrapped object.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  org.omg.CORBA.portable.InputStream in = null;
  org.omg.CORBA.portable.OutputStream out = null;
  try
    {
      try
        {
          out = ref._request(method, true);

          // Transfer request information.
          int b;
          while ((b = input.read()) >= 0)
            {
              out.write(b);
            }
          in = ref._invoke(out);

          // Read the returned data.
          out = handler.createReply();
          while ((b = in.read()) >= 0)
            {
              out.write(b);
            }
        }
      catch (IOException io_ex)
        {
          MARSHAL m = new MARSHAL();
          m.minor = Minor.Forwarding;
          m.initCause(io_ex);
          throw m;
        }
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();

      String _id = ex.getId();
      throw new MARSHAL(_id, 5101, CompletionStatus.COMPLETED_NO);
    }
  catch (RemarshalException remarsh)
    {
      _invoke(method, input, handler);
    }
  finally
    {
      ref._releaseReply(in);
    }
  return out;
}
 
Example 14
Project: jvm-stm   File: ForwardedServant.java   Source Code and License 4 votes vote down vote up
/**
 * Forward the call to the wrapped object.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  org.omg.CORBA.portable.InputStream in = null;
  org.omg.CORBA.portable.OutputStream out = null;
  try
    {
      try
        {
          out = ref._request(method, true);

          // Transfer request information.
          int b;
          while ((b = input.read()) >= 0)
            {
              out.write(b);
            }
          in = ref._invoke(out);

          // Read the returned data.
          out = handler.createReply();
          while ((b = in.read()) >= 0)
            {
              out.write(b);
            }
        }
      catch (IOException io_ex)
        {
          MARSHAL m = new MARSHAL();
          m.minor = Minor.Forwarding;
          m.initCause(io_ex);
          throw m;
        }
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();

      String _id = ex.getId();
      throw new MARSHAL(_id, 5101, CompletionStatus.COMPLETED_NO);
    }
  catch (RemarshalException remarsh)
    {
      _invoke(method, input, handler);
    }
  finally
    {
      ref._releaseReply(in);
    }
  return out;
}
 
Example 15
Project: JamVM-PH   File: ForwardedServant.java   Source Code and License 4 votes vote down vote up
/**
 * Forward the call to the wrapped object.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  org.omg.CORBA.portable.InputStream in = null;
  org.omg.CORBA.portable.OutputStream out = null;
  try
    {
      try
        {
          out = ref._request(method, true);

          // Transfer request information.
          int b;
          while ((b = input.read()) >= 0)
            {
              out.write(b);
            }
          in = ref._invoke(out);

          // Read the returned data.
          out = handler.createReply();
          while ((b = in.read()) >= 0)
            {
              out.write(b);
            }
        }
      catch (IOException io_ex)
        {
          MARSHAL m = new MARSHAL();
          m.minor = Minor.Forwarding;
          m.initCause(io_ex);
          throw m;
        }
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();

      String _id = ex.getId();
      throw new MARSHAL(_id, 5101, CompletionStatus.COMPLETED_NO);
    }
  catch (RemarshalException remarsh)
    {
      _invoke(method, input, handler);
    }
  finally
    {
      ref._releaseReply(in);
    }
  return out;
}
 
Example 16
Project: classpath   File: ForwardedServant.java   Source Code and License 4 votes vote down vote up
/**
 * Forward the call to the wrapped object.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  org.omg.CORBA.portable.InputStream in = null;
  org.omg.CORBA.portable.OutputStream out = null;
  try
    {
      try
        {
          out = ref._request(method, true);

          // Transfer request information.
          int b;
          while ((b = input.read()) >= 0)
            {
              out.write(b);
            }
          in = ref._invoke(out);

          // Read the returned data.
          out = handler.createReply();
          while ((b = in.read()) >= 0)
            {
              out.write(b);
            }
        }
      catch (IOException io_ex)
        {
          MARSHAL m = new MARSHAL();
          m.minor = Minor.Forwarding;
          m.initCause(io_ex);
          throw m;
        }
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();

      String _id = ex.getId();
      throw new MARSHAL(_id, 5101, CompletionStatus.COMPLETED_NO);
    }
  catch (RemarshalException remarsh)
    {
      _invoke(method, input, handler);
    }
  finally
    {
      ref._releaseReply(in);
    }
  return out;
}