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 IndexIBM MQ Java / JMSMQ7 Pub/Sub matching function

Post new topicReply to topic Goto page 1, 2  Next
MQ7 Pub/Sub matching function View previous topic :: View next topic
Author Message
scravr
PostPosted: Fri Nov 04, 2011 4:42 am Post subject: MQ7 Pub/Sub matching function Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
zpat
PostPosted: Fri Nov 04, 2011 4:47 am Post subject: Reply with quote

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
View user's profile Send private message
scravr
PostPosted: Fri Nov 04, 2011 4:50 am Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
zpat
PostPosted: Fri Nov 04, 2011 4:58 am Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Nov 04, 2011 5:15 am Post subject: Re: MQ7 Pub/Sub matching function Reply with quote

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
View user's profile Send private message
scravr
PostPosted: Fri Nov 04, 2011 5:34 am Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
markt
PostPosted: Fri Nov 04, 2011 5:45 am Post subject: Reply with quote

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
View user's profile Send private message
scravr
PostPosted: Fri Nov 04, 2011 5:53 am Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Vitor
PostPosted: Fri Nov 04, 2011 6:01 am Post subject: Reply with quote

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
View user's profile Send private message
markt
PostPosted: Fri Nov 04, 2011 6:09 am Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 508

There is no such API in MQ.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 04, 2011 7:01 am Post subject: Re: MQ7 Pub/Sub matching function Reply with quote

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
View user's profile Send private message Send e-mail
gbaddeley
PostPosted: Sun Nov 06, 2011 3:05 pm Post subject: Reply with quote

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
View user's profile Send private message
scravr
PostPosted: Thu Nov 10, 2011 5:46 am Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Vitor
PostPosted: Thu Nov 10, 2011 5:53 am Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Nov 10, 2011 6:02 am Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum IndexIBM MQ Java / JMSMQ7 Pub/Sub matching function
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.