Hi,
I dare to say that my code is correct ;) The problem is that it is NEVER called - this condition (even if it's wrong, however it's not) is never checked. When I remove this line:
out.setWriteListener(new EchoWriteListener(queue, out));
it seems to work. However, I have no writer, so it should be rather called SwallowListener... It's not my goal.