final QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
final Queue replyDestination = session.createTemporaryQueue();
final QueueReceiver receiver = session.createReceiver(replyDestination);
final Message message = session.createTextMessage("Test");
message.setJMSReplyTo(replyDestination);
<BUG>final Destination destination = (Destination) ctx.lookup("queue/test");
</BUG>
final MessageProducer producer = session.createProducer(destination);
producer.send(message);
producer.close();

final QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
final Queue replyDestination = session.createTemporaryQueue();
final QueueReceiver receiver = session.createReceiver(replyDestination);
final Message message = session.createTextMessage("Test");
message.setJMSReplyTo(replyDestination);
final Destination destination = (Destination) ctx.lookup("java:jboss/queue/test");
final MessageProducer producer = session.createProducer(destination);
producer.send(message);
producer.close();
