Not logged in | Login
Publishing And Subscribing To Multiple Web Sphere Queues
WebSphere MQ allows you to specify publish and subscribe to multiple queues, which means that each subscriber retrieves all of its messages from a specific queue that is assigned to that subscriber. JMS creates a new dynamic queue for each subscriber, and each subscriber has exclusive use of the dynamic queue assigned to it.
When you use the multiple queue approach, you do not define an explicit queue name. Instead, you define a prefix name on which all dynamic queue names are based. The prefix name needs to end in an asterisk (*); for example, SYSTEM.JMS.D.PAYROLL.*. All dynamic queues that are associated with this subscription will have names that start with SYSTEM.JMS.D.PAYROLL.
For more detailed information about WebSphere queues and configuring multiple queues, see Subscriber Options.
There are two ways to define publishing and subscribing to multiple queues for the JMS BC:
<operation name="JMSInOperation"> <jms:operation destination="jmsjca://?name=Finance & brokerDurSubQueue=SYSTEM.JMS.D.PAYROLL.*" destinationType="Topic" ... subscriptionName="durSub-11"> ... </jms:operation>
This is how the same destination name would appear in the WSDL Properties panel.
<operation name="JMSInOperation"> <jms:operation destination="lookup://jms/WMQTopic" destinationType="Topic" subscriptionName="durSub-11" ....> <jms:options/> </jms:operation>
After you configure the JMS BC to use multiple WebSphere queues, be sure to enable publish/subscribe on the WebSphere MQ broker. By default, it is not enabled in version 5.3 and 6.0.