|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
[Solved] Highly confused - Please help |
« View previous topic :: View next topic » |
Author |
Message
|
greenears |
Posted: Fri Jul 25, 2003 8:05 am Post subject: [Solved] Highly confused - Please help |
|
|
Newbie
Joined: 12 Jun 2002 Posts: 6
|
My question is regarding pub/sub. I have read all the documentations available for pub/sub but had a basic question.
I have a publisher application that is publishing a message with a specific topic based on a business event.
I also register subscription through another subscriber application for the specific topic.
Once the subscriber application registers for a topic, can the application stop running.
Is there a way the subscriber application be started (like in a triggered application), when subscribed message comes to the subscriber queue. Because my application is truly event based and we plan to add multiple subscription applications waiting for different topics.
Is the above possible? Have I misunderstood something basic in pub sub concept?
Please help! |
|
Back to top |
|
 |
EddieA |
Posted: Fri Jul 25, 2003 8:54 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
As long as the Queue you are receiving the Subscriptions on isn't a Dynamic Temporary Queue, then yes, you can do what you want.
Once the Subscription is registered, then the application doesn't have to stay active. In fact, you could even split the Registration and the handling of the Subscriptions into 2 programs.
Then, you would use Triggering on the queue where the Publications are delivered to 'fire off' your application whenever one arrived to process it.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
greenears |
Posted: Fri Jul 25, 2003 1:20 pm Post subject: Thanks EddieA |
|
|
Newbie
Joined: 12 Jun 2002 Posts: 6
|
Thanks so much. It helps me
So if I have two or more programs subscribing, I will create as many subscriber queues and trigger these programs. |
|
Back to top |
|
 |
EddieA |
Posted: Sat Jul 26, 2003 7:35 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Yep. For each unique Subscription program, create a seperate Queue and Trigger the program when a message arrives.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
rajmq |
Posted: Mon Jul 28, 2003 9:57 pm Post subject: |
|
|
 Partisan
Joined: 29 Sep 2002 Posts: 331 Location: USA
|
Hi to all
Why don't use Single queue for multiple subscription.?? and run the common program which will read the message continously.
Can u give some more detail
1. is it JMS pub/sub or java with wmqi??
regards
raj |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|