[Beepcore-java-users] FW: Thread waiting indefinitely
Status: Beta
Brought to you by:
huston
|
From: <eri...@be...> - 2006-10-11 17:06:35
|
Any help would be appreciated. Anyone could answer that?
=20
-----Original Message-----
From: Bussieres, Eric (EX11572)=20
Sent: October 6, 2006 2:50 PM
To: 'bee...@li...'
Subject: Thread waiting indefinitely
=20
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 !
|