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 » Unable to publish/Subscribe, but no errors during execution

Post new topic  Reply to topic
 Unable to publish/Subscribe, but no errors during execution « View previous topic :: View next topic » 
Author Message
fun_rajesh
PostPosted: Tue Aug 05, 2003 8:36 am    Post subject: Unable to publish/Subscribe, but no errors during execution Reply with quote

Newbie

Joined: 05 Aug 2003
Posts: 2

Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Aug 05, 2003 12:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
fun_rajesh
PostPosted: Wed Aug 06, 2003 3:13 am    Post subject: Unable to publish/Subscribe, but no errors during execution Reply with quote

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
View user's profile Send private message
Yannanlu
PostPosted: Fri Aug 08, 2003 5:03 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » IBM MQ Java / JMS » Unable to publish/Subscribe, but no errors during execution
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.