Author |
Message
|
scravr |
Posted: Thu Nov 03, 2011 8:24 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Thu Nov 03, 2011 8:54 am Post subject: |
|
|
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 |
|
 |
scravr |
Posted: Thu Nov 03, 2011 9:10 am Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Thu Nov 03, 2011 9:47 am Post subject: |
|
|
 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 |
|
 |
scravr |
Posted: Thu Nov 03, 2011 9:58 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Thu Nov 03, 2011 10:32 am Post subject: |
|
|
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 |
|
 |
|