Need an option for the client to poll the broker for new messages, for the
receiveNoWait api implementation. Currently the impl returns null even if there
are messages on the broker. This scenario been described in the following closed
bug – https://glassfish.dev.java.net/issues/show_bug.cgi?id=3011
With this option the client should poll the broker for new messages and return a
message if available on broker. If none are available, it should not block for
new messages to arrive on the broker.