ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(url);
QueueConnection queueConnection = factory.createQueueConnection();
this.connection = queueConnection;
QueueSession session = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
QueueSender sender = session.createSender(null); //Unidentified
Queue receiverQueue = session.createTemporaryQueue();
QueueReceiver receiver = session.createReceiver(receiverQueue);
queueConnection.start();
}
public void testTemporaryQueueConsumer() throws Exception {