use of org.apache.axis2.transport.msmq.util.Message in project wso2-axis2-transports by wso2.
the class AxisAsyncEndpoint method receive.
void receive(MessageContext messageCtx) throws AxisFault {
log.debug("MessageReceiver has been invoked");
final AxisMessage messageData;
try {
Assert.assertTrue(messageCtx.isServerSide());
TransportInDescription transportIn = messageCtx.getTransportIn();
Assert.assertNotNull("transportIn not set on message context", transportIn);
Assert.assertEquals(context.getTransportName(), transportIn.getName());
Assert.assertEquals(context.getTransportName(), messageCtx.getIncomingTransportName());
for (MessageContextValidator validator : validators) {
validator.validate(messageCtx, false);
}
messageData = new AxisMessage(messageCtx);
} catch (Throwable ex) {
support.putException(ex);
return;
}
support.putMessage(null, messageData);
}
use of org.apache.axis2.transport.msmq.util.Message in project wso2-axis2-transports by wso2.
the class MessageTestCase method runTest.
@Override
protected void runTest() throws Throwable {
for (MessageExchangeValidator validator : validators) {
validator.beforeSend();
}
doRunTest();
for (MessageExchangeValidator validator : validators) {
log.debug("Invoking message exchange validator " + validator.getClass().getName());
validator.afterReceive();
}
}
Aggregations