queueConnectionFactory = (QueueConnectionFactory) lookup(ctx, qcfBindingName);
final QueueConnection queueConnection = queueConnectionFactory.createQueueConnection(username, password);
queueConnection.start();
final QueueSession queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
final Queue queue = (Queue) ctx.lookup(queueBindingName);
final QueueReceiver queueReceiver = queueSession.createReceiver(queue);
queueReceiver.setMessageListener(this);
} catch (final JMSException e) {
logger.error("Could not read JMS message.", e);
} catch (final NamingException e) {
logger.error("Could not read JMS message.", e);