Creating Cluster Queues
To create new cluster queues, you must first create
a cluster if you have not already done so.
Secondly, in order to create a cluster queue, you must
select the cluster node from the namespace tree where
the queue will be created. For example, if i have a
cluster called productioncluster, which contains 3 realms
called 'productionmaster', 'productionslave1' and 'productionslave2'
and i want to create a queue called /eur/orders within
that cluster of realms, i would need to first of all
click on the cluster node called 'productioncluster'.
Then, by right-clicking on cluster node a pop-up menu
will be displayed that shows a number of menu items
(as shown in the image below).

By clickinig on the menu item 'Create Cluster Queue',
you will be prompted with a dialog box that allows you
to enter the details of the cluster queue you wish to
create.
Cluster queues have exactly the same set of attributes
assigned to them as normal queues when they are created.
The create queue dialog for cluster queues allows you
to input values for each of these attributes. The only
difference will be that the queue will be created across
all of the realms within the cluster and the same state
will be maintaned between all instances of that queue
by the cluster realms.
In order to create a cluster queue called '/eur/orders'
with an event/message TTL of 7 seconds add queue attributes
as shown below:

Clicking on the 'OK' button will create the queue /eur/orders
across all realms within the cluster 'productioncluster'
and render the queue object in the namespace tree of
the Enterprise Manager, both under each realm under
each realm in the cluster as well as each realm underneath
the realms container node. The image below shows how
the namespace tree looks after the cluster queue has
been created, fully expanded.

As you can see from the image above, each realm node
now contains the the queue node in its namespace tree
under a folder (which we call a container node) called
/eur. The icon used for a cluster queue is different
to that of normal queue and is denoted by a multiple
queue icon, whereas the normal queue icon shows a single
queue. |