I’ve put together two custom java service on my Integration Server (version 9.12) that basically follows the sample code provided in the Universal Messaging Developer Guide for Queue browsing / peeking. These services initially worked fine when both doing a count of messages in the queue matching a provided selector string (e.g. a customerId or similar) and also fetching the publish time of the first message in the queue. At some point in time both these services have stopped working. No exception is thrown and no events are found even though there are messages on the queue.
The following line of code is expected to find the events: nConsumeEvent evts = reader.peek(ctx); (as per documentation).
I have tried to remove the message selector part of the of the nQueuePeekContext constructor, but I’m stil not able to find any messages on the queue.
Any ideas on what could be causing this issue?