//
// We only create a session pool when we are not transacted.
// Transacted listeners or producers need to be paired with the
// Session that created them.
if (!isTransacted() && getExchangePattern().equals(ExchangePattern.InOnly)) {
sessions = new SessionPool(getSessionCount(), getConnectionResource());
// TODO fix the string hack
sessions.setAcknowledgeMode(SessionAcknowledgementType.valueOf(getAcknowledgementMode() + ""));
getSessions().fillPool();
}