Author |
Message
|
deeps1281 |
Posted: Wed Mar 01, 2006 8:54 pm Post subject: Pub/sub tutorial |
|
|
Apprentice
Joined: 31 Aug 2005 Posts: 29
|
Hi
Can some one suggest a simple tutorial from where i can practice some basic pub/sub activity.
Thanks |
|
Back to top |
|
 |
ashley5 |
Posted: Wed Mar 01, 2006 11:47 pm Post subject: |
|
|
Novice
Joined: 20 Feb 2006 Posts: 14
|
|
Back to top |
|
 |
mvic |
Posted: Thu Mar 02, 2006 2:18 am Post subject: Re: Pub/sub tutorial |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
deeps1281 wrote: |
Can some one suggest a simple tutorial from where i can practice some basic pub/sub activity. |
If you want to use JMS:
1. Read the relevant sections of the MQ Using Java manual. 2. Also skim the first several sections of the MQ Publish/subscribe manual.
If you want to use C programs:
1. take an hour or two (really, that's all it will take) to read the first several sections of the MQ Publish/Subscribe manual - don't read all the reference material in there, you can come back to that another time. 2. use the supplied Publish/subscribe sample programs to teach yourself by example.
Enjoy  |
|
Back to top |
|
 |
hura |
Posted: Fri Mar 03, 2006 10:49 am Post subject: Java non-JMS publisher/subscriber Sample programs |
|
|
Newbie
Joined: 03 Mar 2006 Posts: 2
|
Hi,
I am new to WebSphere MQ. Have to work with publish subscribe without using JMS because the subscriber aplication is non-java. Any pointers to non-JMS publisher/subscriber sample programs would greatly help. There are many JMS publish/subscribe programs but could not find programs with MQ Base Java.
I have read that all the published messages go to SYSTEM.BROKER.DEFAULT.STREAM queue and all the subscription requests go to SYSTEM.BROKER.CONTROL.QUEUE.
Does it mean publisher program registers with SYSTEM.BROKER.DEFAULT.STREAM and subscriber program with SYSTEM.BROKER.CONTROL.QUEUE?.
And also, I want to know what broker will do when we specify ''replyToQ' field that can be specified with these system queues. _________________ regards,
hura |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Mar 03, 2006 11:15 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Just use JMS and indicate that the targClient is MQ. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Mar 03, 2006 12:22 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Jeff that won't work for the subscribe and publish commands.
The broker relies on the RFH header for informations on the publication/subscription.
Better use the XMS support pack if you cannot use Java JMS.
Jeff's tip works like a charm for point to point though and I use it all the time...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
james2005 |
Posted: Tue Mar 07, 2006 9:38 pm Post subject: Re: Pub/sub tutorial |
|
|
Apprentice
Joined: 18 Sep 2005 Posts: 31
|
|
Back to top |
|
 |
|