Examples of invokeBlocking()


Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

        EndpointReference targetEPR = new EndpointReference(
                "local://services/AddressBookService");
        options.setTo(targetEPR);
        options.setAction("getEntries1");

        Object[] result = serviceClient.invokeBlocking(opAddEntry, opAddEntryArgs, new Class[]{Entry[].class});
        assertNotNull(result);
        Entry[] entries = (Entry[]) result[0];
        assertEquals(entries.length, 2);
    }
View Full Code Here

Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

        EndpointReference targetEPR = new EndpointReference(
                "local://services/AddressBookService");
        options.setTo(targetEPR);
        options.setAction("getEntries2");

        Object[] result = serviceClient.invokeBlocking(opAddEntry, opAddEntryArgs, new Class[]{Entry[].class});
        assertNotNull(result);
        Entry[] entries = (Entry[]) result[0];
        assertEquals(entries.length, 0);
    }
View Full Code Here

Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

        EndpointReference targetEPR = new EndpointReference(
                "local://services/AddressBookService");
        options.setTo(targetEPR);
        options.setAction("getEntries3");

        Object[] result = serviceClient.invokeBlocking(opAddEntry, opAddEntryArgs, new Class[]{Entry[].class});
        assertNotNull(result);
        Entry[] entries = (Entry[]) result[0];
        assertEquals(entries.length, 0);
    }
}
View Full Code Here

Examples of org.apache.ode.bpel.iapi.MyRoleMessageExchange.invokeBlocking()

        }
        odeMex.setProperty(Mapper.class.getName(), mapper.getClass().getName());
        mapper.toODE(odeRequest, request, msgdef);
        odeMex.setRequest(odeRequest);
        try {
            odeMex.invokeBlocking();

        } catch (Exception ex) {
            __log.error("ODE MEX " + odeMex + " resulted in an error.");
            sendError(jbiMex, ex);
            return;
View Full Code Here

Examples of org.apache.ode.bpel.iapi.MyRoleMessageExchange.invokeBlocking()

            }

            odeMex.setRequest(odeRequest);
            odeMex.setTimeout(resolveTimeout());
            try {
                odeMex.invokeBlocking();
            } catch (java.util.concurrent.TimeoutException te) {
                String errmsg = "Call to " + _serviceName + "." + odeMex.getOperationName() + " timed out.";
                __log.error(errmsg, te);
                throw new OdeFault(errmsg);        
            }
View Full Code Here

Examples of org.apache.ode.bpel.iapi.MyRoleMessageExchange.invokeBlocking()

        wrapper.appendChild(body);
        Element message = body.getOwnerDocument().createElementNS("", "message");
        message.appendChild(wrapper);
        request.setMessage(message);
        mex.setRequest(request);
        mex.invokeBlocking();
        mex.complete();

    }

    public TransactionManager getTransactionManager() {
View Full Code Here

Examples of org.apache.ode.bpel.iapi.MyRoleMessageExchange.invokeBlocking()

                Message request = mex.createMessage(_invocation.requestType);
                request.setMessage(_invocation.request);
                _invocation.invokeTime = System.currentTimeMillis();
                mex.setRequest(request);
                mex.invokeBlocking();

                CorrelationStatus cstatus = mex.getCorrelationStatus();
                if (_invocation.expectedCorrelationStatus != null && !cstatus.equals(_invocation.expectedCorrelationStatus))
                    failure(_invocation, "Unexpected correlation status", _invocation.expectedCorrelationStatus, cstatus);
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.