// Use this method to receive the next message that arrives
// within the specified timeout interval.
// This call blocks until a message arrives, the timeout
// expires,
// or this message consumer is closed.
message = (TextMessage) qr.receive(1000);
if (message == null)
{
System.out.println("Keine Nachricht vorhanden!");
messageFound = true;