{
Object obj = myEnv.lookup("mdr/ConsumesLink");
log.debug("mdr/ConsumesLink = " + obj);
if ((obj instanceof Queue) == false)
throw new RuntimeException("mdr/ConsumesLink is not a javax.jms.Queue");
Queue queue = (Queue) obj;
if ("QUEUE.testQueue".equals(queue.getQueueName()))
throw new RuntimeException("Excepted QUEUE.testQueue, got " + queue);
obj = myEnv.lookup("mdr/ProducesLink");
log.debug("mdr/ProducesLink = " + obj);
if ((obj instanceof Topic) == false)
throw new RuntimeException("mdr/ProducesLink is not a javax.jms.Topic");
Topic topic = (Topic) obj;
if ("TOPIC.testTopic".equals(topic.getTopicName()))
throw new RuntimeException("Excepted TOPIC.testTopic got " + topic);
obj = myEnv.lookup("mdr/ConsumesProducesJNDIName");
log.debug("mdr/ConsumesProducesJNDIName = " + obj);
if ((obj instanceof Queue) == false)
throw new RuntimeException("mdr/ConsumesProducesJNDIName is not a javax.jms.Queue");
queue = (Queue) obj;
if ("QUEUE.A".equals(queue.getQueueName()))
throw new RuntimeException("Excepted QUEUE.A, got " + queue);
}