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 » List of Subscribers

Post new topic  Reply to topic Goto page Previous  1, 2
 List of Subscribers « View previous topic :: View next topic » 
Author Message
scravr
PostPosted: Thu Nov 03, 2011 8:24 am    Post subject: Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

I am looking for the MQ pus/sub server function.
"=", "like", 'equals, or reating specific function to match byte at a time....... will be time spending.

How can we get the mq pub/sub server function?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
mqjeff
PostPosted: Thu Nov 03, 2011 8:54 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Let's try this again.

You can ask MQ for a list of Topics. You will get back a list that includes the TOPIC string for each topic.

You can ask MQ for a list of Subscriptions. You will get back a list that includes the TOPIC string for each subscription.

If you are trying to determine which set of subscriptions in the second list is a "match" for what set of Topics in the first list, then you use NORMAL JAVA STRING OPERATIONS to determine that one Topic string from the second list is EQUAL to the Topic string from the first list.
Back to top
View user's profile Send private message
scravr
PostPosted: Thu Nov 03, 2011 9:10 am    Post subject: Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

Let's try one more time:

In JAVA/JMS:

1. How can I get the MQTopic of each incoming msg? like: Message msg = topicsub.receive();

2. Then how can I match this topic to all other MQ subscribers TOPIC-string? (on your second list)

Basically I am trying to fugureout which subscriber-name (potentially) got the same messages. And if there is no match ---> flag messages that no one else is interested.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
fjb_saper
PostPosted: Thu Nov 03, 2011 9:47 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

scravr wrote:
Let's try one more time:

In JAVA/JMS:

1. How can I get the MQTopic of each incoming msg? like: Message msg = topicsub.receive();

2. Then how can I match this topic to all other MQ subscribers TOPIC-string? (on your second list)

Basically I am trying to fugureout which subscriber-name (potentially) got the same messages. And if there is no match ---> flag messages that no one else is interested.

Don't see the point... Are you trying to build your own Pub/Sub engine?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
scravr
PostPosted: Thu Nov 03, 2011 9:58 am    Post subject: Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

not realy... funny idea...

I am trying to findout what messages have no subscribers, and also how many messages etch sub got during run-tme.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
mqjeff
PostPosted: Thu Nov 03, 2011 10:32 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Subscribers are supposed to be entirely independent of each other.

If you have made a subscription, you know what topic you subscribed to. You can then use that to request a list of subscribers, and either check that each one has the same topic string, or try adding it as a parameter to the inquire command. I think that's how the where clause is specified in PCF commands, but it might not be quite right.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Java / JMS » List of Subscribers
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.