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 » Java & MQRFH

Post new topic  Reply to topic
 Java & MQRFH « View previous topic :: View next topic » 
Author Message
shogan
PostPosted: Wed Dec 18, 2002 2:44 am    Post subject: Java & MQRFH Reply with quote

Novice

Joined: 09 May 2002
Posts: 15

Using the ma88 classes I've written a Java application and also a threaded applet to get & put messages.

I read the PDF that comes with ma88 and in particular Chapter 12 on JMS. I don't understand JMS yet and my immediate needs would be met if my humble applet could apply an MQRFH header.

In my code msg_put is an instance of class MQMessage. I wrote the following line.

msg_put.format = MQC.MQFMT_RF_HEADER_1; // Apply 'MQHRF '

However the format still appears blank in the message which is put to queue.
What else do I have to do ? My next step (had the format appeared as 'MQHRF ') would be to create the associated header in the data portion of the message by prepending it to the existing data.

Many thanks in advance
Back to top
View user's profile Send private message
vmcgloin
PostPosted: Wed Dec 18, 2002 4:44 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

My understanding is that with JMS the RFH header is present unless you specifically state that the destination is a non-JMS application.

See setTargetClient in the Destination class.
JMSC.MQJMS_CLIENT_JMS_COMPLIANT
JMSC.MQJMS_CLIENT_NONJMS_MQ

On the other hand, if you are using base MQ Java rather than JMS, which it looks like you might be, I don't know the answer.
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 » Java & MQRFH
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.