[
https://jira.jboss.org/jira/browse/JBMESSAGING-1374?page=com.atlassian.ji...
]
Howard Gao commented on JBMESSAGING-1374:
-----------------------------------------
It doesn't work with the <depends> entry. I tried to modify the config as
follows, and it turns out the DLQ won't get set unless the order is correct,
regardless of the <depends> entry.
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=QueueWithOwnDLQAndExpiryQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends>jboss.messaging.destination:service=Queue,name=PrivateDLQ</depends>
<!-- *********************see this doesn't make the DLQ set************ -->
...
<attribute
name="DLQ">jboss.messaging.destination:service=Queue,name=PrivateDLQ</attribute>
<attribute
name="ExpiryQueue">jboss.messaging.destination:service=Queue,name=PrivateExpiryQueue</attribute>
</mbean>
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=PrivateDLQ"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends
optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
<mbean code="org.jboss.jms.server.destination.TopicService"
name="jboss.messaging.destination:service=Topic,name=TopicWithOwnDLQAndExpiryQueue"
xmbean-dd="xmdesc/Topic-xmbean.xml">
<depends>jboss.messaging.destination:service=Queue,name=PrivateDLQ</depends>
<!-- ****************** this will get set because the DLQ is placed before the topic
*********** -->
<depends
optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
<attribute
name="DLQ">jboss.messaging.destination:service=Queue,name=PrivateDLQ</attribute>
<attribute
name="ExpiryQueue">jboss.messaging.destination:service=Queue,name=PrivateExpiryQueue</attribute>
</mbean>
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=PrivateExpiryQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends
optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
DLQ override depends on the queues definition order.
----------------------------------------------------
Key: JBMESSAGING-1374
URL:
https://jira.jboss.org/jira/browse/JBMESSAGING-1374
Project: JBoss Messaging
Issue Type: Bug
Reporter: Tim Fox
Assignee: Howard Gao
Fix For: 1.4.0.SP3.CP04, 1.4.1.GA
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira