The present invention provides a method, apparatus, and computer usable
code for constructing a queue namespace object having encapsulation of
data stored in the queue namespace object. A series of steps may include
receiving a request from a requesting program or other entity for a queue
in a set of queues using a selected name. Upon getting the request, a
processor may associate a selected name with a queue namespace object in
a set of namespace objects. Further features may include processing
requests for accessing the queues using the selected name and the queue
namespace object in the set of namespace objects such that different
applications may be assigned different queues in the set of queues, even
though the selected name may be the same.