This content has been marked as final.
Show 2 replies
-
1. Re: DLQ and JMS 101?
pra Feb 13, 2002 2:57 AM (in response to kkremer)That sounds really strange...
//Peter -
2. Re: DLQ and JMS 101?
kkremer Feb 13, 2002 11:46 AM (in response to kkremer)Strange indeed, in the code, if I increase the receive call timeout from 1 to say, 2000, I can perform a directory listing during the run and watch the individual files in the queue directory disappear, one by one, without any of them being delivered to me.
queueConnection.start();
while (true) {
Message m = queueReceiver.receive(1);
if (m != null) {
System.out.println( "got message" );
if (m instanceof TextMessage) {
message = (TextMessage) m;
System.out.println("Reading message: " +
message.getText());
} else {
break;
}
}
}