JBoss 5.1.0 GA Message Queue and Connection Factory integration
senthilrmca Nov 2, 2011 11:42 AMHi All,
I have created custom connection factory, message queue and DLQueue. When i try to lookup the queue from the custom connection factory its not available. But the queue is available in "XAConnectionFactory" which is default connection factory. i couldn't find how to integrate these queue and custom connection factory. Please find the -service.xml file. Hope one of you guys will help me.
<?xml version="1.0" encoding="UTF-8"?>
<server>
<!-- Connection Factory -->
<mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
name="jboss.messaging.connectionfactory:service=NotificationConnectionFactory"
xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
<constructor>
<arg type="java.lang.String" value="NotifClientID"/>
</constructor>
<depends optional-attribute-name="ServerPeer">
jboss.messaging:service=ServerPeer
</depends>
<depends optional-attribute-name="Connector">
jboss.messaging:service=Connector,transport=bisocket
</depends>
<depends>jboss.messaging:service=PostOffice</depends>
<attribute name="JNDIBindings">
<bindings>
<binding>NotificationCF</binding>
<binding>jms/NotificationCF</binding>
</bindings>
</attribute>
<attribute name="SupportsFailover">false</attribute>
<attribute name="SupportsLoadBalancing">false</attribute>
<attribute name="LoadBalancingFactory">org.jboss.jms.client.plugin.RoundRobinLoadBalancingFactory</attribute>
<attribute name="PrefetchSize">50</attribute>
<attribute name="SlowConsumers">false</attribute>
<attribute name="StrictTck">true</attribute>
<attribute name="SendAcksAsync">false</attribute>
<attribute name="DefaultTempQueueFullSize">1000</attribute>
<attribute name="DefaultTempQueuePageSize">100</attribute>
<attribute name="DefaultTempQueueDownCacheSize">200</attribute>
<attribute name="DupsOKBatchSize">2000</attribute>
</mbean>
<!-- Queue -->
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=NotificationQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
<attribute name="JNDIName">jms/NotificationQueue</attribute>
<attribute name="DLQ">jboss.messaging.destination:service=Queue,name=NotificationErrorQueue</attribute>
<attribute name="RedeliveryDelay">1200000</attribute>
<attribute name="MaxDeliveryAttempts">3</attribute>
</mbean>
<!--
The Notification Dead Letter Queue. This destination is a dependency of an EJB MDB container.
-->
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=NotificationErrorQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
<attribute name="JNDIName">jms/NotificationErrorQueue</attribute>
<attribute name="RedeliveryDelay">1200000</attribute>
<attribute name="MaxDeliveryAttempts">1</attribute>
</mbean>
</server>