@Test(timeout = 30000, expected=IllegalStateException.class) public void testCreateConnectionConsumerOnTopicConnection() throws JMSException{ topicConnection.createConnectionConsumer(new JmsQueue(), "subscriptionName", (ServerSessionPool)null, 1); }
@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"); }
JmsTopicConnection extends JmsConnection implements AutoCloseable { @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"); } }
JmsTopicConnection extends JmsConnection implements AutoCloseable { @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"); } JmsTopicConnection(JmsConnectionInfo connectionInfo, Provider provider); }
JmsTopicConnection extends JmsConnection implements AutoCloseable { @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"); } JmsTopicConnection(JmsConnectionInfo connectionInfo, Provider provider); @Override ConnectionConsumer createConnectionConsumer(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages); @Override QueueSession createQueueSession(boolean transacted, int acknowledgeMode); }
JmsTopicConnection extends JmsConnection implements AutoCloseable { @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"); } JmsTopicConnection(JmsConnectionInfo connectionInfo, Provider provider); @Override ConnectionConsumer createConnectionConsumer(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages); @Override QueueSession createQueueSession(boolean transacted, int acknowledgeMode);  }