Java Code Examples for org.omg.CORBA.ServerRequest

The following are top voted examples for showing how to use org.omg.CORBA.ServerRequest. 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: TIDorbJ   File: ExecThread.java   View source code 6 votes vote down vote up
private void doInvoke(DynamicImplementation servant,
                      org.omg.CORBA.ServerRequest request)
{
    try {
        servant.invoke(request);
    }
    catch (org.omg.CORBA.SystemException se) {
        throw se;
    }
    catch (Throwable th) {
        if (m_poa_manager.m_orb.m_trace != null) {
            String[] msg =
              { toString(),
               " Exception in servant invoke method, UNKOWN thrown: "
              };
            
            m_trace.printStackTrace(Trace.DEBUG, msg, th);
        }
        throw new org.omg.CORBA.UNKNOWN();
    }
}
 
Example 2
Project: TIDorbJ   File: RequestDispatcher.java   View source code 6 votes vote down vote up
public void dispatchRequest( QueuedResponseHandler responseHandler ) {
    if ( responseHandler != null ){           
        
        if(setPOAKey(responseHandler)) {

         this.rootPOAManager.put( responseHandler );
         
         if ( this.orb.m_trace != null) {
             ServerRequest request = responseHandler.getServerRequest(); 
             this.orb.printTrace(
                 Trace.DEEP_DEBUG, 
                 new String[]{
                    toString(),
                    " Dispatching ",
                    responseHandler.toString()
                    }
             );
         }
        }
    } else {
        throw new BAD_PARAM( "null response handler" );
    }
}
 
Example 3
Project: javify   File: _BindingIteratorImplBase.java   View source code 5 votes vote down vote up
/**
 * The obsolete invocation using server request. Implemented for
 * compatibility reasons, but is it more effectinve to use
 * {@link #_invoke}.
 *
 * @param request a server request.
 */
public void invoke(ServerRequest request)
{
  // "destroy" has a void return type, the two other methods - boolean.
  Streamable result =
    request.operation().equals("destroy") ? null : new BooleanHolder();
  gnu.CORBA.ServiceRequestAdapter.invoke(request, this, result);
}
 
Example 4
Project: jvm-stm   File: _BindingIteratorImplBase.java   View source code 5 votes vote down vote up
/**
 * The obsolete invocation using server request. Implemented for
 * compatibility reasons, but is it more effectinve to use
 * {@link #_invoke}.
 *
 * @param request a server request.
 */
public void invoke(ServerRequest request)
{
  // "destroy" has a void return type, the two other methods - boolean.
  Streamable result =
    request.operation().equals("destroy") ? null : new BooleanHolder();
  gnu.CORBA.ServiceRequestAdapter.invoke(request, this, result);
}
 
Example 5
Project: JamVM-PH   File: _BindingIteratorImplBase.java   View source code 5 votes vote down vote up
/**
 * The obsolete invocation using server request. Implemented for
 * compatibility reasons, but is it more effectinve to use
 * {@link #_invoke}.
 *
 * @param request a server request.
 */
public void invoke(ServerRequest request)
{
  // "destroy" has a void return type, the two other methods - boolean.
  Streamable result =
    request.operation().equals("destroy") ? null : new BooleanHolder();
  gnu.CORBA.ServiceRequestAdapter.invoke(request, this, result);
}
 
Example 6
Project: classpath   File: _BindingIteratorImplBase.java   View source code 5 votes vote down vote up
/**
 * The obsolete invocation using server request. Implemented for
 * compatibility reasons, but is it more effectinve to use
 * {@link #_invoke}.
 *
 * @param request a server request.
 */
public void invoke(ServerRequest request)
{
  // "destroy" has a void return type, the two other methods - boolean.
  Streamable result =
    request.operation().equals("destroy") ? null : new BooleanHolder();
  gnu.CORBA.ServiceRequestAdapter.invoke(request, this, result);
}
 
Example 7
Project: TIDorbJ   File: ExecThread.java   View source code 5 votes vote down vote up
/**
 * Executes "_is_a" request on the ServantDelegate.
 * 
 * @param servant
 *            The target servant of the "_is_a" request.
 * @param request
 *            The queued request to be executed.
 */
private void invoke_is_a(POAImpl poa,
                         org.omg.PortableServer.Servant servant,
                         org.omg.CORBA.ServerRequest request)
{
    try {
        es.tid.TIDorbj.core.poa.ServantDelegate deleg =
            (es.tid.TIDorbj.core.poa.ServantDelegate) servant._get_delegate();
        org.omg.CORBA.ORB orb = poa.m_orb;
        org.omg.CORBA.NVList params = orb.create_list(1);
        org.omg.CORBA.Any $s = orb.create_any();
        $s.type(orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string));
        params.add_value("s", $s, org.omg.CORBA.ARG_IN.value);
        request.arguments(params);
        String itf = $s.extract_string();
        boolean result = deleg.is_a(servant, itf);
        org.omg.CORBA.Any resultAny = orb.create_any();
        resultAny.insert_boolean(result);
        request.set_result(resultAny);
    } catch (org.omg.CORBA.SystemException se) {
        throw se;
    } catch (Throwable th) {
        if ( this.m_orb.m_trace != null) {
            m_trace.printStackTrace(
                Trace.DEBUG, 
                new String[]{
                    toString(),
                    " Exception in servant invoke \"_is_a\" method, ",
                    "UNKOWN thrown: "
                },
                th
            );
        }
        throw new org.omg.CORBA.UNKNOWN();
    }

}
 
Example 8
Project: TIDorbJ   File: LocalLocateResponseHandler.java   View source code 5 votes vote down vote up
public ServerRequest getServerRequest() {
    throw new NO_IMPLEMENT( 
        "LocateRequest doesn't have a peer ServerRequest",
        0,
        CompletionStatus.COMPLETED_NO
    );
}
 
Example 9
Project: TIDorbJ   File: IIOPLocateResponseHandler.java   View source code 5 votes vote down vote up
public ServerRequest getServerRequest() {
    throw new NO_IMPLEMENT( 
        "LocateRequest doesn't have a peer ServerRequest",
        0,
        CompletionStatus.COMPLETED_NO
    );
}
 
Example 10
Project: TIDorbJ   File: SSLLocateResponseHandler.java   View source code 5 votes vote down vote up
public ServerRequest getServerRequest() {
    throw new NO_IMPLEMENT( 
        "LocateRequest doesn't have a peer ServerRequest",
        0,
        CompletionStatus.COMPLETED_NO
    );
}
 
Example 11
Project: TIDorbJ   File: LocalResponseHandler.java   View source code 4 votes vote down vote up
public ServerRequest getServerRequest() {
    return this.serverRequest;
}
 
Example 12
Project: TIDorbJ   File: AMILocalResponseHandler.java   View source code 4 votes vote down vote up
public ServerRequest getServerRequest() {
    return this.serverRequest;
}
 
Example 13
Project: TIDorbJ   File: IIOPResponseHandler.java   View source code 4 votes vote down vote up
public ServerRequest getServerRequest() {
    return this.serverRequest;
}
 
Example 14
Project: TIDorbJ   File: SSLResponseHandler.java   View source code 4 votes vote down vote up
public ServerRequest getServerRequest() {
    return this.serverRequest;
}
 
Example 15
Project: javify   File: DynamicImplementation.java   View source code 2 votes vote down vote up
/**
 * Handle the invocation via passed request.
 *
 * @param request the data structure, used both to pass parameters
 * and return results of the invocation.
 */
public abstract void invoke(ServerRequest request);
 
Example 16
Project: jvm-stm   File: DynamicImplementation.java   View source code 2 votes vote down vote up
/**
 * Handle the invocation via passed request.
 *
 * @param request the data structure, used both to pass parameters
 * and return results of the invocation.
 */
public abstract void invoke(ServerRequest request);
 
Example 17
Project: JamVM-PH   File: DynamicImplementation.java   View source code 2 votes vote down vote up
/**
 * Handle the invocation via passed request.
 *
 * @param request the data structure, used both to pass parameters
 * and return results of the invocation.
 */
public abstract void invoke(ServerRequest request);
 
Example 18
Project: classpath   File: DynamicImplementation.java   View source code 2 votes vote down vote up
/**
 * Handle the invocation via passed request.
 *
 * @param request the data structure, used both to pass parameters
 * and return results of the invocation.
 */
public abstract void invoke(ServerRequest request);
 
Example 19
Project: TIDorbJ   File: ResponseHandler.java   View source code votes vote down vote up
public abstract ServerRequest getServerRequest();