Author |
Message
|
gperera |
Posted: Thu Aug 08, 2002 7:18 am Post subject: Publishing a retained publication using JMS |
|
|
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 |
|
 |
amigupta1978 |
Posted: Thu Aug 08, 2002 9:01 pm Post subject: |
|
|
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 |
|
 |
gperera |
Posted: Fri Aug 09, 2002 3:41 am Post subject: |
|
|
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 |
|
 |
kolban |
Posted: Fri Aug 09, 2002 5:16 am Post subject: |
|
|
 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 |
|
 |
solomita |
Posted: Mon Jul 18, 2005 10:35 am Post subject: |
|
|
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 |
|
 |
bower5932 |
Posted: Mon Jul 18, 2005 11:48 am Post subject: |
|
|
 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 |
|
 |
solomita |
Posted: Mon Jul 18, 2005 12:01 pm Post subject: |
|
|
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 |
|
 |
bower5932 |
Posted: Mon Jul 18, 2005 1:58 pm Post subject: |
|
|
 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 |
|
 |
|