Package org.jitterbit.integration.server.jms

Examples of org.jitterbit.integration.server.jms.JmsServerException


        Connection conn = null;
        try {
            conn = ServerDbInfo.getTranDbConnectionInfo().getConnection(
                            DBConnectionInfo.SUGGESTED_TIMEOUT_FOR_GET_CONNECTION);
        } catch (SQLException ex) {
            throw new JmsServerException("Failed to get a connection to the backend database", ex);
        }
        JmsLocationInfoStore infoStore = new JmsLocationInfoDbStore(conn);
        Map<Long, LocationProperties> opToLocationPropsMap = infoStore.getJmsLocationInfo();
        for (Entry<Long, LocationProperties> entry : opToLocationPropsMap.entrySet()) {
            Listener listener = new Listener(entry.getValue());
View Full Code Here


        try {
            stmt = msgDb.createStatement();
            stmt.execute("UPDATE OutgoingJmsMsgTab SET SendingProgress = " + status.toInt()
                            + " WHERE JmsMsgInstanceId = " + Long.toString(jmsMsgId));
        } catch (SQLException ex) {
            throw new JmsServerException("Failed to update message sent status on the message with ID " + jmsMsgId, ex);
        } finally {
            KongaDbUtils.close(stmt);
        }
    }
View Full Code Here

                            + Long.toString(jmsMsgId)
                            + "; DELETE FROM JmsSendingPropertiesTab WHERE JmsMessage_ID = "
                            + Long.toString(jmsMsgId);
            stmt.execute(sql);
        } catch (SQLException ex) {
            throw new JmsServerException("Failed to archive the JMS message with id " + jmsMsgId, ex);
        } finally {
            KongaDbUtils.close(rows);
            KongaDbUtils.close(stmt);
        }
    }
View Full Code Here

            rows = stmt.executeQuery(sql);
            while (rows.next()) {
                locationProps.addProperty(rows.getString(1), rows.getString(2));
            }
        } catch (SQLException ex) {
            throw new JmsServerException("Failed to get the location properties for the JMS message with id " + msgId,
                            ex);
        } finally {
            KongaDbUtils.close(rows);
            KongaDbUtils.close(stmt);
        }
View Full Code Here

            while (rows.next()) {
                DataElement de = new DataElement(DataElement.Type.fromString(rows.getString(2)), rows.getString(3));
                messageProps.put(rows.getString(1), de);
            }
        } catch (SQLException ex) {
            throw new JmsServerException("Failed to read the properties for the message with id " + id, ex);
        } finally {
            KongaDbUtils.close(rows);
            KongaDbUtils.close(stmt);
        }
        return messageProps;
View Full Code Here

            msg.locationProps = getLocationProperties(msg.msgId);
            msg.messageProps = getMessageProperties(propertiesId);
            msg.payloadPath = payloadPath;
            return msg;
        } catch (SQLException ex) {
            throw new JmsServerException("Failed to retrieve the message to send", ex);
        }
    }
View Full Code Here

                    opToPropsMap.put(opId, locationProperties);
                }
                locationProperties.addProperty(rows.getString(3), rows.getString(4));
            }
        } catch (SQLException ex) {
            throw new JmsServerException("Failed to retrieve JMS location info", ex);
        } finally {
            KongaDbUtils.close(rows);
            KongaDbUtils.close(stmt);
        }
        return opToPropsMap;
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.server.jms.JmsServerException

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.