Java Tibco polling
Posted on 2012-08-20
I'm working with custom Tibco listeners that use the MessageConsumer class like this:
Message msg = consumer.receive();
I'd like to implement a shutdown mechanism, so I'd like to replace this with:
Message msg - consumer.receive(1000L);
So repeatedly execute the receive call, and check for a shutdown condition between calls.
Is there any issue with making repeated receive(timeout) calls like this?