Author |
Message
|
bower5932 |
Posted: Tue Nov 08, 2005 2:59 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Are you truly subscribed? Go get the dumpbroker and unsubscribe programs at the URL above and try running them. I'd also suggest that you get the soccer sample and run it to make sure that your configuration is correct. As far as the difference in the messages and the queues, I was quoting out of the publish/subscribe manual. You might want to look at the various commands that you can send the broker.
As far as fjb_saber is concerned, you could use some user properties in the header and filter on them. So, you should still be able to use JMS. |
|
Back to top |
|
 |
sanks |
Posted: Tue Nov 08, 2005 3:07 am Post subject: |
|
|
Apprentice
Joined: 21 Mar 2005 Posts: 27
|
I am stuck.
Please help me out. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Nov 08, 2005 4:20 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Please go back and read the Using Pub/Sub manual.
And please pay attention. You do not publish messages by putting them on SYSTEM.BROKER.DEFAULT.STREAM. You publish them by putting them on SYSTEM.BROKER.COMMAND.QUEUE.
You subscribe to topics by building a subscription request command message, and put that on SYSTEM.BROKER.COMMAND.QUEUE. The ReplyTo Queue field of that message will indicate the queue you wish to subscribe. If that field is blank, then the broker will assume SYSTEM.BROKER.DEFAULT.STREAM. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
sanks |
Posted: Tue Nov 08, 2005 6:09 am Post subject: |
|
|
Apprentice
Joined: 21 Mar 2005 Posts: 27
|
I have put the RFH-headed message with publish Command
as "<psc><Command>Publish</Command><Topic>SLAM/ALL</Topic> <QMgrName>SLAMQM</QMgrName><QName>SLAM/ALL</QName></psc>"
into SYSTEM.BROKER.CONTROL.QUEUE.
Prior to do that I have done the following sequences.
i>I have started Broker on Qmngr 'SLAMQM'.
ii> I have created 'SLAM/ALL' i.e topic queue.
ii> I have subscribed a queue 'Q1' on that topic i.e 'SLAM/ALL' thru rfhutil.
As soon as I run my application to put message in 'SYSTEM.BROKER.CONTROL.QUEUE' for publication,
I did not find the message any of the following queues like 'SYSTEM.BROKER.CONTROL.QUEUE', 'SYSTEM.BROKER.DEFAULT.STREAM', 'SLAM/ALL' and 'Q1'.
If you gyes tell me any solution it will be really ........ ..
Otherwise I have to think about the other solution.
My basic problem is :
Actually I am going to publish a topic and subscribers will be getting message from topic based on some filter condition. I am not able do the same using JMS. As I am not using Event Broker/Integrator or WBIMB , I am in a big trouble.
Please can any body tell me, is it possible (not using JMS message selector) to do the content based filter in MQ Pub/Sub scenario?
I am bit frustrated.
Thanks
Sanks |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Nov 08, 2005 6:53 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
sanks wrote: |
Actually I am going to publish a topic and subscribers will be getting message from topic based on some filter condition. I am not able do the same using JMS. As I am not using Event Broker/Integrator or WBIMB , I am in a big trouble.
Please can any body tell me, is it possible (not using JMS message selector) to do the content based filter in MQ Pub/Sub scenario? |
Just out of curiosity, how were you going to use the broker to do content based filtering? This is exactly what WBI EB/MB were intended for. You could also probably do something in JMS (with a selector) to get this done. I have no idea how you would do this with the old MA0C broker without going and doing something special. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Nov 08, 2005 1:38 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Can't do it using JMS ??
I dont think this is a question of "can" ...
It may well be a question of design and performance especially with some vague filtering criteria...
 |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Nov 08, 2005 2:07 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I took the can't to mean that he wasn't supposed to use JMS to do it not that JMS couldn't do it? |
|
Back to top |
|
 |
|