For monitoring purposes I would like to have a Java service which would get the first message in a client queue. (of course without deleting it from the client queue).
Then once I have the document in IDATA in flow service I can filter from the _env the enqueueTime.
I’m guessing that the Broker Java API is the way to go for this.
Something like :
Browse client queue
Set position to 1
Get the document
disconnect
Can anyone help providing a sample Java code for this?
Thank you Jeremy. I was able to get only the metadata too (_env part of the message). I have gone through the Broker JAVA API so many times but it just does not work Does anyone out there knows how or even possible to get the actual message that is stuck in the client queued?
Hi,
I managed to finally do this using the QueueBrowser java class.
You just need to then convert the BrokerEvent into a string using the toString() and then extract the data.
You can also get the data by getting the value of the IData Field name…