if ("AUTO_ACKNOWLEDGE".equals(ackModeString)) {
ackMode = Session.AUTO_ACKNOWLEDGE;
} else if ("CLIENT_ACKNOWLEDGE".equals(ackModeString)) {
ackMode = Session.CLIENT_ACKNOWLEDGE;
}
QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup(connFactoryName);
try {
this.connection = factory.createQueueConnection();
this.session = connection.createQueueSession(transacted, ackMode);
this.queue = this.session.createQueue(queueName);
this.responseQueue = this.session.createQueue(responseQueueName);