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 » Publishing a retained publication using JMS

Post new topic  Reply to topic
 Publishing a retained publication using JMS « View previous topic :: View next topic » 
Author Message
gperera
PostPosted: Thu Aug 08, 2002 7:18 am    Post subject: Publishing a retained publication using JMS Reply with quote

Newbie

Joined: 30 May 2001
Posts: 8
Location: Minneapolis, MN

We need to find out if it is possible to publish a retained publication using JMS. (Note: We are not interested in durable subscriptions which is a completely different function.)

Retained publications are available in MQSeries, but is not part of the JMS interface. There is no documentation on how this is done. Are there additional MQ JMS classes from IBM that would allow this function?
Back to top
View user's profile Send private message Visit poster's website
amigupta1978
PostPosted: Thu Aug 08, 2002 9:01 pm    Post subject: Reply with quote

Centurion

Joined: 22 Jan 2002
Posts: 132
Location: India

Hi,
I am not quite sure but I have seen one of the parameters in the MQRFH2 as
<psc>
<Command>Publish</Command>
<PubOpt>RetainPub</PubOpt>
<Topic>xyz</Topic>
</psc>

May be this mite work for u.

Regards,
Amit
_________________
IBM certified MQseries Specialist
IBM certified WMQI Specialist
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
gperera
PostPosted: Fri Aug 09, 2002 3:41 am    Post subject: Reply with quote

Newbie

Joined: 30 May 2001
Posts: 8
Location: Minneapolis, MN

Thanks Amit,

You're correct, that is the exact parameter that we're concerned with. We know how to build that using the base MQ java classes. But our question is:

How do you set that attribute using the JMS API. We don't see it in the JMS spec & were wondering if the IBM extensions JMS API allowed us to set that attribute.

Regards,
Guy
Back to top
View user's profile Send private message Visit poster's website
kolban
PostPosted: Fri Aug 09, 2002 5:16 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

To the best of my knowledge, this capability isn't supported in the IBM JMS implementation. Retained publications aren't part of the JMS spec so if this feature could be supported, it would indeed be an IBM extension. If you have to resort to IBM extensions, then you may as well use the MQ Base Java classes.

I have looked and looked at the IBM JMS docs many times and never seen anything supporting this feature. I think we must assume that it simply isn't supported.
Back to top
View user's profile Send private message
solomita
PostPosted: Mon Jul 18, 2005 10:35 am    Post subject: Reply with quote

Voyager

Joined: 06 May 2003
Posts: 94

We are also using JMS to do publications but setting it up as retained in the broker. Basically what happens is the JMS app does a PUB and the messages get put on the queue specified in the MQ JMS Topic Connection Factory in WAS. The message on this queue is picked up by the broker which then transforms it to XML and sends it to the publication node. If the JMS subscriber app is running, it will receive the transformed message.

Now we want to add retained publications into the picture which I know is not supported by JMS. So I have simply added the following line of code to my Compute node:

SET OutputRoot.MQRFH2.psc.PubOpt = 'RetainPub';

If we publish messages, then run the JMS subscribe app, there are no messages.

What are we doing wrong?
Back to top
View user's profile Send private message Yahoo Messenger
bower5932
PostPosted: Mon Jul 18, 2005 11:48 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Did you try putting a trace node before and after your compute to see if the parameter looked like it got added in correctly? Are you getting any kind of errors any where? What are you using for your broker?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
solomita
PostPosted: Mon Jul 18, 2005 12:01 pm    Post subject: Reply with quote

Voyager

Joined: 06 May 2003
Posts: 94

I didnt put a trace node but am using RFHUTIL. So before the message gets published, I write it to a queue and I can see the RetainPub box get checked on the PubSub tab of RFHUTIL. I can try trace if that will give me more of what I need but right now I dont see any errors. I am using WBIMB for my broker.
_________________
IBM Certified Specialist - WebSphere MQ Integrator
IBM Certified System Administrator - WebSphere MQ V5.3
IBM Certified System Administrator - WebSphere Business Integration Message Broker V5
Back to top
View user's profile Send private message Yahoo Messenger
bower5932
PostPosted: Mon Jul 18, 2005 1:58 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Check out your subscribe message and make sure that you don't have the NewPubsOnly flag set.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Publishing a retained publication using JMS
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.