Package org.fcrepo.server.messaging

Examples of org.fcrepo.server.messaging.JMSManager$JMSDestination


        private void connect() throws MessagingException {
            int retries = 0;

            while(m_jmsManager == null && retries < MAX_RETRIES) {
                try {
                    m_jmsManager = new JMSManager(m_connectionProperties, m_clientId);
                } catch(MessagingException me) {
                    Throwable rootCause = me.getCause();
                    while(rootCause.getCause() != null) {
                        rootCause = rootCause.getCause();
                    }
View Full Code Here


        checkMessage(clientId, TOPIC);
        messagingClient.stop(true);
    }

    private void sendMessage(String jndiName) throws Exception {
        JMSManager jmsManager = new JMSManager(properties);
        TextMessage message = jmsManager.createTextMessage(jndiName, messageText);
        message.setStringProperty(propertyName, propertyValue);
        jmsManager.send(jndiName, message);
        jmsManager.stop(jndiName);
        jmsManager.close();
    }
View Full Code Here

TOP

Related Classes of org.fcrepo.server.messaging.JMSManager$JMSDestination

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.