You need to ask on the Ubuntu forum how to set timeout on sockets. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067171#4067171 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067171