Author |
Message
|
scravr |
Posted: Fri Nov 04, 2011 4:42 am Post subject: MQ7 Pub/Sub matching function |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
Does anyone know if the MQ7 pub/sub matching function is callable from a JAVA application?
I am trying to test/verify if a subscription’s topic-string can match a published topic.
Basically I am looking for function that compares two string (with “*”, “#”, “/”, …) and returns match/no-match. |
|
Back to top |
|
 |
zpat |
Posted: Fri Nov 04, 2011 4:47 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
You mean can you subscribe from a Java app? Naturally you can, either using the standard MQI, or using JMS. |
|
Back to top |
|
 |
scravr |
Posted: Fri Nov 04, 2011 4:50 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
I am looking for the
MQ7 PUB/SUB MATHING FUNCTION !!! |
|
Back to top |
|
 |
zpat |
Posted: Fri Nov 04, 2011 4:58 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Does such a thing exist? Do you understand how WMQ pub/sub works?
Can you find a reference to it in the infocenter. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Nov 04, 2011 5:15 am Post subject: Re: MQ7 Pub/Sub matching function |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
scravr wrote: |
Does anyone know if the MQ7 pub/sub matching function is callable from a JAVA application?[
I am trying to test/verify if a subscription’s topic-string can match a published topic. |
So what you're looking for is an API by which you can send a topic string (with wildcards) into the MQ7 pub/sub engine and get an response back indicating if such a subscription matches a publication?
This is presumably tied in with this task, where you've now obtained the subscriber's topic strings & are attempting to see if they ever get messages? Given that you asked the same question at the top of that thread?
a) I don't believe such an API exists but my wife often complains about my lack of belief. A PMR would answer you.
b) If it did exist what use would it be in a scanario where publications have their topic string built dynamically?
scravr wrote: |
Basically I am looking for function that compares two string (with “*”, “#”, “/”, …) and returns match/no-match. |
That's a slightly different question & I'll leave the qualified to answer on the existence or not of such a string matching function in Java.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
scravr |
Posted: Fri Nov 04, 2011 5:34 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
YES;
I am looking for the MQ/JAVA API to pass 2 strings and get response: Match/No-Match.
I guess it's somewhere inside the pub/sub server matching functionality.
The broker Publish Node returns NoMatch event... that means function is somewere... |
|
Back to top |
|
 |
markt |
Posted: Fri Nov 04, 2011 5:45 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
That is not what the broker node does. Read more closely about what NoMatch means. |
|
Back to top |
|
 |
scravr |
Posted: Fri Nov 04, 2011 5:53 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
back to original Q:
How can I access the pub/sub matching API? |
|
Back to top |
|
 |
Vitor |
Posted: Fri Nov 04, 2011 6:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
scravr wrote: |
How can I access the pub/sub matching API? |
There is no guarantee that function / process / code path is exposed as an API.
I've never seen any document which indicates it is.
This doesn't mean it isn't.
You need to get a PMR going. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
markt |
Posted: Fri Nov 04, 2011 6:09 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
There is no such API in MQ. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Nov 04, 2011 7:01 am Post subject: Re: MQ7 Pub/Sub matching function |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
scravr wrote: |
Does anyone know if the MQ7 pub/sub matching function is callable from a JAVA application?
I am trying to test/verify if a subscription’s topic-string can match a published topic.
Basically I am looking for function that compares two string (with “*”, “#”, “/”, …) and returns match/no-match. |
Have you thought about using regular expressions for that?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gbaddeley |
Posted: Sun Nov 06, 2011 3:05 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
scravr wrote: |
back to original Q:
How can I access the pub/sub matching API? |
I'm curious about your requirement for such as function. What were you going to use it for? Maybe we can provide advice on possible solutions. _________________ Glenn |
|
Back to top |
|
 |
scravr |
Posted: Thu Nov 10, 2011 5:46 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
As part of very large WMQ/WMB V7 PUB/SUB systems, this JMS Utility keeps matrix of pub, subs, topics, destinations....
Utility identifies non-subscribed topics, sub's that do not get any msgs.....
I am looking for the IBM function that matches MQTopic (on a published msg) with each sub's topic-string.
I think same function is used on MQExplorer when testing topics & subscriptions.
Any idea where/what JAR has this function, name, parameters, and what result it returns?
Thanks,
Mos |
|
Back to top |
|
 |
Vitor |
Posted: Thu Nov 10, 2011 5:53 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
scravr wrote: |
I think same function is used on MQExplorer when testing topics & subscriptions.
Any idea where/what JAR has this function, name, parameters, and what result it returns? |
As I indicated above there's no guarantee that this internal function is exposed as an API. If markt says that it isn't then that's a really good indicator that it isn't.
Assuming there was someone on this board who a) knew how to get to this function and b) was allowed to talk about it, do you really want to rely on an undocumented internal function that could change or disappear in the next fix pack?
Raise a PMR. Get the offical word from IBM. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Nov 10, 2011 6:02 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
scravr wrote: |
I think same function is used on MQExplorer when testing topics & subscriptions. |
Are you sure MQExplorer is doing that? In the sense of doing something other than issuing MQPUT & MQSUB calls & displaying the results? I've always assumed that and would be interested to discover my assumption is wrong. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|