@Test public void testGetTopicSubscriber() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue queue = session.createTemporaryQueue(); JmsPoolQueueReceiver receiver = (JmsPoolQueueReceiver) session.createReceiver(queue); assertNotNull(receiver.getQueueReceiver()); assertTrue(receiver.getQueueReceiver() instanceof MockJMSQueueReceiver); receiver.close(); try { receiver.getQueueReceiver(); fail("Cannot read state on closed receiver"); } catch (IllegalStateException ise) {} }
public QueueReceiver getQueueReceiver() throws JMSException { return (QueueReceiver) super.getMessageConsumer(); }
JmsPoolQueueReceiver extends JmsPoolMessageConsumer implements QueueReceiver, AutoCloseable { public QueueReceiver getQueueReceiver() throws JMSException { return (QueueReceiver) super.getMessageConsumer(); } }
JmsPoolQueueReceiver extends JmsPoolMessageConsumer implements QueueReceiver, AutoCloseable { public QueueReceiver getQueueReceiver() throws JMSException { return (QueueReceiver) super.getMessageConsumer(); } JmsPoolQueueReceiver(JmsPoolSession session, QueueReceiver delegate); }
JmsPoolQueueReceiver extends JmsPoolMessageConsumer implements QueueReceiver, AutoCloseable { public QueueReceiver getQueueReceiver() throws JMSException { return (QueueReceiver) super.getMessageConsumer(); } JmsPoolQueueReceiver(JmsPoolSession session, QueueReceiver delegate); @Override Queue getQueue(); @Override String toString(); QueueReceiver getQueueReceiver(); }
JmsPoolQueueReceiver extends JmsPoolMessageConsumer implements QueueReceiver, AutoCloseable { public QueueReceiver getQueueReceiver() throws JMSException { return (QueueReceiver) super.getMessageConsumer(); } JmsPoolQueueReceiver(JmsPoolSession session, QueueReceiver delegate); @Override Queue getQueue(); @Override String toString(); QueueReceiver getQueueReceiver();  }