I have a jboss 4.2.0 clustered configuration built by two nodes. On each node, there are jms queues deployed with the same name. These queues are used locally by each node, I mean, messages sent to a node are only consumed by this node.
The problem is that both queues are persisted to the same database, therefore, to the same tables, and due that queues have the same name on each node, I wonder if one node could consume a message from the other node.
Thanks a lot
Not an issue.
The queues are keyed on queue name + node id, so queues with the same name can be deployed on multiple nodes.
From the config:
CREATE_POSTOFFICE_TABLE=CREATE TABLE JBM_POSTOFFICE (POSTOFFICE_NAME VARCHAR(255), NODE_ID INTEGER, QUEUE_NAME VARCHAR(1023), COND VARCHAR(1023), SELECTOR VARCHAR(1023), CHANNEL_ID BIGINT, CLUSTERED CHAR(1))