public final class QueueFactory
extends java.lang.Object
Queue objects. QueueFactory is thread safe.| Modifier and Type | Method and Description |
|---|---|
static Queue |
getDefaultQueue()
Returns the default
Queue. |
static Queue |
getQueue(java.lang.String queueName)
Returns the
Queue by name. |
public static Queue getQueue(java.lang.String queueName)
Queue by name.
The returned Queue object may not necessarily refer to an existing queue. Queues
must be configured before they may be used. Attempting to use a non-existing queue name may
result in errors at the point of use of the Queue object and not when calling getQueue(String).