Package org.fcrepo.server.errors

Examples of org.fcrepo.server.errors.MessagingException


                //
                jmsDestinations.remove(destName);
                jmsDest = null;
            }
        } catch (JMSException e) {
            throw new MessagingException(e.getMessage(), e);
        }
    }
View Full Code Here


                    durableSubscriptions.get(subscriptionName);
            if (durableSubscriber != null) {
                durableSubscriber.close();
            }
        } catch (JMSException jmse) {
            throw new MessagingException("Exception encountered attempting to "
                    + "stop durable subscription with name: "
                    + subscriptionName + ". Exception message: "
                    + jmse.getMessage(), jmse);
        }
    }
View Full Code Here

        } catch (JMSException jmse) {
            String errMsg = "Unable to unsubscribe from subscription with name: "
                          + subscriptionName + " due to exception: "
                          + jmse.getMessage();
            logger.debug(errMsg, jmse);
            throw new MessagingException(errMsg, jmse);
        }
    }
View Full Code Here

            connection.close();
            connected = false;
            logger.debug("Connection closed.");
        } catch (JMSException e) {
            logger.debug("Error closing Connection.");
            throw new MessagingException(e.getMessage(), e);
        }
    }
View Full Code Here

            throws MessagingException {
        JMSDestination jmsDest = getJMSDestination(destName);
        try {
            return jmsDest.session.createMapMessage();
        } catch (JMSException e) {
            throw new MessagingException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            TextMessage message = jmsDest.session.createTextMessage();
            message.setText(text);
            return message;
        } catch (JMSException e) {
            throw new MessagingException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            ObjectMessage message = jmsDest.session.createObjectMessage();
            message.setObject(object);
            return message;
        } catch (JMSException e) {
            throw new MessagingException(e.getMessage(), e);
        }
    }
View Full Code Here

            throws MessagingException {
        JMSDestination jmsDest = getJMSDestination(destName);
        try {
            return jmsDest.session.createBytesMessage();
        } catch (JMSException e) {
            throw new MessagingException(e.getMessage(), e);
        }
    }
View Full Code Here

            connected = true;
            logger.debug("connectToJMS - connected");
        } catch (JMSException e) {
            connected = false;
            logger.error("JMSManager.connectToJMS - Exception occurred:");
            throw new MessagingException(e.getMessage(), e);
        }
    }
View Full Code Here

        if (jmsDest.producer != null) return;
        try {
            jmsDest.producer =
                    jmsDest.session.createProducer(jmsDest.destination);
        } catch (JMSException e) {
            throw new MessagingException(e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of org.fcrepo.server.errors.MessagingException

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.