if (LoggingControl.isAnyTracingEnabled() && log.isDebugEnabled())
log.debug("Exit: MakeConnectionProcessor::replyToPoll");
}
private static void addMessagePendingHeader(MessageContext returnMessage, String namespace) {
MessagePending messagePending = new MessagePending();
messagePending.setPending(true);
if (returnMessage.getEnvelope().getHeader() == null) {
int SOAPVersion = Sandesha2Constants.SOAPVersion.v1_1;
if (!returnMessage.isSOAP11())
SOAPVersion = Sandesha2Constants.SOAPVersion.v1_2;
//The header might not be there because of the persistence code if it doesn't exist we need to add one
SOAPAbstractFactory.getSOAPFactory(
SOAPVersion).createSOAPHeader(returnMessage.getEnvelope());
}
messagePending.toHeader(returnMessage.getEnvelope().getHeader());
}