Posted: Tue Apr 20, 2004 4:41 am Post subject: WAS v5.0 MDB subscribe to multiple topics
Acolyte
Joined: 30 Jun 2001 Posts: 65 Location: Israel
Hi,
A mainframe app publishes updates to a base MQ pub/sub broker (MA0C). A Windows app running on WebSphere App Server (v5.0) needs to subscribe to multiple topics. We're trying to use a Message Driven Bean to receive the updates.
On the WAS we defined:
- A "WebSphere MQ Connection Factory" which represents the queue manager and the broker.
- A "Topic Destination" which represents a topic to be subscribed to.
- A "Message Listener Service" which listens to a Topic Destination.
Later we deploy the MDB and bind in to a Listener Service.
The problem starts when we need to subscribe to more than one topic. It seems that:
- The Listener Service can only be defined to listen to a single destination, which means a single topic.
- When deploying the MDB, it can only be bound to a single listener service.
Thus - a single MDB can only subscribe to a single topic?
Is there another way for our MDB to subscribe to multiple topics? Have we overlooked anything?
Using Java, Part 3 - Chapter 11 'Using Topics' wrote:
A powerful feature of the topic system in WebSphere MQ classes for Java Message Service is the use of wildcards. These allow subscribers to subscribe to more than one topic at a time.
There are some limitations on what you can wildcard, particularly depending on which version of the broker that's being run. _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum