} else {
QueueConnectionFactory factory = (QueueConnectionFactory)
context.lookup(OPENJMS_QUEUE);
context.close();
return factory.createQueueConnection();
}
} catch (NamingException e) {
throw new JMSException("Error creating InitialContext ", e.toString());
}