int sessionId = deMgr.addDataElements(deMap);
// Insert new message
msgDbConnection = ServerDbInfo.getMsgDbConnectionInfo().getConnection();
msgDbConnection.setAutoCommit(false);
MsgDb msgDb = new MsgDb(msgDbConnection);
long msgId = msgDb.insertIncomingProcessMsg(this.getClass().getName(), "Process Engine",
"Incoming JMS Message", "Interchange", "1", Priority.MSG_PRIORITY_NORMAL.toInt(), 1);
// Associate with the SessionId.
msgDb.insertProcessDataElement(msgId, "__SessionID", new DataElement(sessionId));
// Associate with the OperationId.
msgDb.insertProcessDataElement(msgId, "OperationID", new DataElement((int) operationId));
// Tell the engine to execute and commit.
msgDb.flagMessageForExecution(msgId);
idbConnection.commit();
msgDbConnection.commit();
} catch (SQLException e) {
throw new MessagingException("SQL Exception occurred when inserting message into process queue: "
+ e.getMessage(), e);