All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fusesource.stomp.jms.StompJmsQueueConnection Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (C) 2012, FuseSource Corp.  All rights reserved.
 *
 *     http://fusesource.com
 *
 * The software in this package is published under the terms of the
 * CDDL license a copy of which has been included with this distribution
 * in the license.txt file.
 */
package org.fusesource.stomp.jms;

import javax.jms.*;
import javax.net.ssl.SSLContext;
import java.net.URI;

/**
 * @author Hiram Chirino
 */
public class StompJmsQueueConnection extends StompJmsConnection {

    public StompJmsQueueConnection(URI brokerURI, URI localURI, String userName, String password, SSLContext sslContext) throws JMSException {
        super(brokerURI, localURI, userName, password, sslContext);
    }

    @Override
    public TopicSession createTopicSession(boolean transacted, int acknowledgeMode) throws JMSException {
        throw new javax.jms.IllegalStateException("Operation not supported by a QueueConnection");
    }

    @Override
    public ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
        throw new javax.jms.IllegalStateException("Operation not supported by a QueueConnection");
    }

    @Override
    public ConnectionConsumer createConnectionConsumer(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
        throw new javax.jms.IllegalStateException("Operation not supported by a QueueConnection");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy