Error configuring DLQ and ExpiryQueue for distributed destination
skr989 Mar 5, 2010 1:32 AMCan somebody help me with the DLQ and ExpiryQueue for distributed destinations? I tried with the below myqueue-service.xml.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Messaging Destinations deployment descriptor.
$Id: destinations-service.xml 85945 2009-03-16 19:45:12Z dimitris@jboss.org $
-->
<server>
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=myErrorQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
<attribute name="Clustered">true</attribute>
</mbean>
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=myExpiryQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
<attribute name="Clustered">true</attribute>
</mbean>
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=testDistributedQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
<attribute name="Clustered">true</attribute>
<attribute name="DLQ">jboss.messaging.destination:service=Queue,name=myErrorQueue</attribute>
<attribute name="ExpiryQueue">jboss.messaging.destination:service=Queue,name=myExpiryQueue</attribute>
</mbean>
</server>
When I start node1 of the Cluster, it starts fine. But when I start node2, I get the below error.
DEPLOYMENTS IN ERROR:
Deployment "jboss.messaging.destination:name=myExpiryQueue,service=Queue" is in error due to the following reason(s): java.lang.IllegalArgumentException: Queue myExpiryQueue is already deployed as clustered = false so cannot redeploy as clustered=true . You must delete the destination first before redeploying
Deployment "jboss.messaging.destination:name=myErrorQueue,service=Queue" is in error due to the following reason(s): java.lang.IllegalArgumentException: Queue myErrorQueue is already deployed as clustered = false so cannot redeploy as clustered=true . You must delete the destination first before redeploying
Any help on this is highly appreciated.
Thanks,
Steve