sess = (JBossSession)localConnection.createXASession();
localSession = (SessionDelegate)sess.getDelegate();
}
JBossDestination dest = new JBossQueue(localQueue.getName(), true);
producer = localSession.createProducerDelegate(dest);
//We create the consumer with autoFlowControl = false
//In this mode, the consumer does not handle it's own flow control, but it must be handled