use of nl.nn.adapterframework.core.TimeOutException in project iaf by ibissource.
the class SendJmsMessageExecute method processMessage.
private void processMessage(JmsSender qms, String messageId, String message) {
// PipeLineSession pls=new PipeLineSession();
Map ibisContexts = XmlUtils.getIbisContext(message);
String technicalCorrelationId = messageId;
if (log.isDebugEnabled()) {
if (ibisContexts != null) {
String contextDump = "ibisContext:";
for (Iterator it = ibisContexts.keySet().iterator(); it.hasNext(); ) {
String key = (String) it.next();
String value = (String) ibisContexts.get(key);
if (log.isDebugEnabled()) {
contextDump = contextDump + "\n " + key + "=[" + value + "]";
}
if (key.equals("tcid")) {
technicalCorrelationId = value;
}
}
log.debug(contextDump);
}
}
try {
qms.open();
qms.sendMessage(technicalCorrelationId, message);
} catch (SenderException e) {
error("error occured sending message", e);
} catch (TimeOutException e) {
error("error occured sending message", e);
}
try {
qms.close();
} catch (Exception e) {
error("error occured on closing connection", e);
}
}
Aggregations