[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

gurgstar do-not-reply at jboss.com
Wed Jun 27 19:53:47 EDT 2007


Two suggestions

(1) Stop writing code that relies on interrupting threads.  

(2) To avoid lost wake up problems, replace foo.notify() with something that stays signalled if there are no threads calling foo.wait().  Consider using a Semaphore or a BlockingQueue from util.concurrent / java.util.concurrent.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058489#4058489

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058489



More information about the jboss-user mailing list