org.fusesource.stomp.jms.StompJmsTopicConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stompjms-client Show documentation
Show all versions of stompjms-client Show documentation
STOMP-JMS is a JMS implementation using STOMP as the wire protocol
/**
* 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 java.net.URI;
/**
* @author Hiram Chirino
*/
public class StompJmsTopicConnection extends StompJmsConnection {
public StompJmsTopicConnection(URI brokerURI, URI localURI, String userName, String password) throws JMSException {
super(brokerURI, localURI, userName, password);
}
@Override
public ConnectionConsumer createConnectionConsumer(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
throw new javax.jms.IllegalStateException("Operation not supported by a TopicConnection");
}
@Override
public QueueSession createQueueSession(boolean transacted, int acknowledgeMode) throws JMSException {
throw new javax.jms.IllegalStateException("Operation not supported by a TopicConnection");
}
}