Universal Messaging 10.3 | Developer Guide | Enterprise APIs | Enterprise Developer's Guide for Java | Code Examples | Message Queues | Java Client: Synchronous Queue Consumer
 
Java Client: Synchronous Queue Consumer
This example shows how to synchronously consume events from a Universal Messaging Queue. See also: Asynchronous Queue Subscription.
Usage
npopq <queue name> [timeout] [debug] [count] [selector]

<Required Arguments>

<queue name> - Queue name parameter for the queue to pop from

[Optional Arguments]

[timeout] - The timeout for the dequeue operation
[debug] - The level of output from each event, 0 - none, 1 - summary, 2 - EIDs, 3 - All
[count] - The number of events to wait before printing out summary information
[selector] - The event filter string to use


Note: -? provides help on environment variables
Application Source Code
Click here for a code example