ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » WAS v5.0 MDB subscribe to multiple topics

Post new topic  Reply to topic
 WAS v5.0 MDB subscribe to multiple topics « View previous topic :: View next topic » 
Author Message
royr
PostPosted: Tue Apr 20, 2004 4:41 am    Post subject: WAS v5.0 MDB subscribe to multiple topics Reply with quote

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?

Thanks in advance,
-Roy.
      Back to top
      View user's profile Send private message
      jefflowrey
      PostPosted: Tue Apr 20, 2004 4:46 am    Post subject: Reply with quote

      Grand Poobah

      Joined: 16 Oct 2002
      Posts: 19981

      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.
      Back to top
      View user's profile Send private message
      royr
      PostPosted: Tue Apr 20, 2004 5:13 am    Post subject: Wildcards Reply with quote

      Acolyte

      Joined: 30 Jun 2001
      Posts: 65
      Location: Israel

      But wildcards are only useful when the topics can be expressed as a pattern. Consider the topics:

      "ForeignExchangeRates/USD"
      "ForeignExchangeRates/GBP"
      "ForeignExchangeRates/EUR"
      "ForeignExchangeRates/AUD"
      ... (hundrends more)

      Our MDB needs only 4 or 5 of those topics.
      Back to top
      View user's profile Send private message
      Display posts from previous:   
      Post new topic  Reply to topic Page 1 of 1

      MQSeries.net Forum Index » IBM MQ Java / JMS » WAS v5.0 MDB subscribe to multiple topics
      Jump to:  



      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
      Protected by Anti-Spam ACP
       
       


      Theme by Dustin Baccetti
      Powered by phpBB © 2001, 2002 phpBB Group

      Copyright © MQSeries.net. All rights reserved.