assertTrue( "no response to async operation!", i > 0 ); // no responses in time
return handler.getOutputs()[0];
}
private WSIFMessage doAsyncOpNoHandler(WSIFOperation op, WSIFMessage input, WSIFMessage context) {
WSIFMessage output = null;
try {
context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo",
TestUtilities.getWsifProperty("wsif.async.replytoq2") );
context.setObjectPart( "testJMSnoHandler", "true" );
op.setContext( context );
WSIFCorrelationId id = op.executeRequestResponseAsync( input );
System.out.println( "async operation done, correlation id=" + id.getCorrelationId() );
Object jmsResponse =
TestUtilities.getJMSAsyncResponse(
id.getCorrelationId(),
TestUtilities.getWsifProperty("wsif.async.replytoq2"));
output = op.createOutputMessage();
WSIFMessage fault = op.createFaultMessage();
op.processAsyncResponse( jmsResponse, output, fault );
} catch (Exception ex) {
ex.printStackTrace();
assertTrue( "exception executing async op: " + ex.getMessage(), false );
}