Hi Holger, if I use the new channel.setcallback I still have to call gateway.exit() at the end. So I need a thread to wait for the remote side to finish. Is there a way to avoid this? Calling gateway.exit() form the callback would be fine for me, but I'm afraid that won't work. Jan