|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Pub/sub model in Java? |
« View previous topic :: View next topic » |
Author |
Message
|
gobi_nathan |
Posted: Mon Apr 14, 2003 9:47 pm Post subject: Pub/sub model in Java? |
|
|
Acolyte
Joined: 08 Jan 2003 Posts: 69
|
Can we achieve the publisher/ subscribers model using in MQSeries for Java API.Without using JMS classes.
If yes.CAn you tell me how to create Topic..and also How it works with creating publisher and subscribers?
-Gobi |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Apr 15, 2003 5:36 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The method is the same as working with an RFH2 header in C. You must manually construct the RFH2 header, and manually set all the correct MQMD options.
There are sample Java programs that do this that are included with WMQI, but I don't know if they are available on IBM's website otherwise. |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Apr 15, 2003 5:40 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
You can use the java to do publish/subscribe. You'll have to manually build the MQRFH header which will contian your publish and subscribe commands. You can try looking at the C samples that ship with MA0C. There are also a couple of java programs (DumpBroker, Unsubscribe) that can be found at http://www.developer.ibm.com/tech/sampmq.html. They create some of the structures which might give you an idea of what you'll need to do. |
|
Back to top |
|
 |
meekings |
Posted: Tue Apr 15, 2003 7:26 am Post subject: |
|
|
 Voyager
Joined: 28 Jun 2001 Posts: 86 Location: UK, South West
|
I've never used it, but AMI (SupportPac MA0F) has a Java interface to support pub/sub that I believe builds the headers automagically. _________________ Brian Meekings
Information Design, Inc. |
|
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
|
|
|
|