Search in sources :

Example 1 with ContextList

use of org.omg.CORBA.ContextList in project cxf by apache.

the class CorbaConduit method getRequest.

public Request getRequest(CorbaMessage message, String opName, org.omg.CORBA.NVList nvlist, org.omg.CORBA.NamedValue ret, org.omg.CORBA.ExceptionList exList) throws Exception {
    Request request = null;
    if (orb == null) {
        prepareOrb();
    }
    ContextList ctxList = orb.create_context_list();
    Context ctx = null;
    try {
        ctx = orb.get_default_context();
    } catch (Exception ex) {
    // ignore?
    }
    org.omg.CORBA.Object targetObj = (org.omg.CORBA.Object) message.get(CorbaConstants.CORBA_ENDPOINT_OBJECT);
    if (targetObj != null) {
        request = targetObj._create_request(ctx, opName, nvlist, ret, exList, ctxList);
    }
    return request;
}
Also used : Context(org.omg.CORBA.Context) Request(org.omg.CORBA.Request) ContextList(org.omg.CORBA.ContextList) SystemException(org.omg.CORBA.SystemException) IOException(java.io.IOException) UnknownUserException(org.omg.CORBA.UnknownUserException)

Aggregations

IOException (java.io.IOException)1 Context (org.omg.CORBA.Context)1 ContextList (org.omg.CORBA.ContextList)1 Request (org.omg.CORBA.Request)1 SystemException (org.omg.CORBA.SystemException)1 UnknownUserException (org.omg.CORBA.UnknownUserException)1