before changing from ActiveMQ to Java NIO