[Beepcore-java-users] Thread waiting indefinitely
Status: Beta
Brought to you by:
huston
From: <eri...@be...> - 2006-10-06 18:50:24
|
Hi, =20 I have one problem while waiting for a Reply after having sent a MSG. I send a message and wait for a reply. So the thread hangs on method lReply.hasNext(). If a disconnection occurs, the thread will still be waiting on the reply since nobody notify it. How could I fix this problem? =20 mChannel.sendMSG(new StringOutputDataStream("application/xml", lBuffer.toString()), lReply); =20 while (lReply.hasNext()) { do something ... } =20 Thanks ! |