use of com.swiftmq.impl.amqp.amqp.v01_00_00.transformer.OutboundTransformer in project swiftmq-ce by iitsoftware.
the class SourceMessageProcessor method transformMessage.
private Delivery transformMessage(MessageEntry messageEntry) throws JMSException {
try {
MessageImpl message = sourceLink.isQueue ? messageEntry.getMessage() : copyMessage(messageEntry.getMessage());
MessageIndex messageIndex = messageEntry.getMessageIndex();
OutboundTransformer transformer = sourceLink.getTransformer();
if (ctx.traceSpace.enabled)
ctx.traceSpace.trace(ctx.amqpSwiftlet.getName(), toString() + "/transformMessage, transformer=" + transformer);
if (transformer == null)
throw new JMSException("No outbound message transformer found!");
Delivery delivery = new Delivery(sourceLink, message, messageIndex);
transformer.transform(delivery);
return delivery;
} catch (Exception e) {
e.printStackTrace();
throw new JMSException(e.toString());
}
}
Aggregations