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 Index » IBM MQ Java / JMS » Pub/sub model in Java?

Post new topic  Reply to topic
 Pub/sub model in Java? « View previous topic :: View next topic » 
Author Message
gobi_nathan
PostPosted: Mon Apr 14, 2003 9:47 pm    Post subject: Pub/sub model in Java? Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 15, 2003 5:36 am    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Tue Apr 15, 2003 5:40 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
meekings
PostPosted: Tue Apr 15, 2003 7:26 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Pub/sub model in Java?
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.