|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Unable to publish/Subscribe, but no errors during execution |
« View previous topic :: View next topic » |
Author |
Message
|
fun_rajesh |
Posted: Tue Aug 05, 2003 8:36 am Post subject: Unable to publish/Subscribe, but no errors during execution |
|
|
Newbie
Joined: 05 Aug 2003 Posts: 2
|
|
Back to top |
|
 |
bower5932 |
Posted: Tue Aug 05, 2003 12:29 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
If you have to use the base classes, you are going to have to build the MQRFH2 header yourself and put the appropriate verbs in it. To be honest, I've found JMS to be a lot easier to deal with when trying to do publish/subscribe. There are a couple of programs (mqjmspub.java and mqjmssub.java) at:
http://www.developer.ibm.com/tech/sampmq.html
that could help with the JMS. Can I ask why you have to do it with the base MQ classes? |
|
Back to top |
|
 |
fun_rajesh |
Posted: Wed Aug 06, 2003 3:13 am Post subject: Unable to publish/Subscribe, but no errors during execution |
|
|
Newbie
Joined: 05 Aug 2003 Posts: 2
|
I would prefer to use JMS. But the super classes are written with MQTopic and MQTopicConnectionFactory. The sub-classes I write, for pub/sub, have to use them.
The requirement is to add a new Topic and pub/sub through them.
The program mqjmssub.java uses generic JMS and not MQ specific JMS.
If MQRFH2 headers are set, will the problem be solved. Please tell me how to go about..
Thanks
Rajesh |
|
Back to top |
|
 |
Yannanlu |
Posted: Fri Aug 08, 2003 5:03 pm Post subject: |
|
|
Apprentice
Joined: 23 Jan 2002 Posts: 27
|
besides JMS, you have at least two options.
1) use MQSI to add V2 header and topics.
or
2) build V2 header from scratch in your MQ Java code.
RFH2 header is actually the part of body for MQ apps. You just need to prefix the header to each message body and send the message in point-to-point to the broker queue. For the header detail, please check the manual, Using Java on JMS part.
Good luck. |
|
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
|
|
|
|