Package org.jitterbit.integration.server.db.msgdb

Examples of org.jitterbit.integration.server.db.msgdb.MsgDb


            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);
View Full Code Here


        private volatile boolean shouldStop;

        public TaskCheckForOutgoing() {
            try {
                msgDbConn = ServerDbInfo.getMsgDbConnectionInfo().getConnection();
                msgDb = new MsgDb(msgDbConn);
                messageStore = new JmsMessageDbStore(msgDb);
                sender = new Sender();
            } catch (SQLException e) {
                // TODO logging for SQLException for checking for outgoing JMS Messages
                e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.server.db.msgdb.MsgDb

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.