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 » General IBM MQ Support » BUFFER_LENGTH in the MQPUT API

Post new topic  Reply to topic
 BUFFER_LENGTH in the MQPUT API « View previous topic :: View next topic » 
Author Message
kiranraj
PostPosted: Mon Sep 19, 2005 11:47 pm    Post subject: BUFFER_LENGTH in the MQPUT API Reply with quote

Novice

Joined: 19 Sep 2005
Posts: 12

Hi,
I am sending a request via MQ(in Java). If I need to form the MQ Header, can I do it this way ?
mess = new MQMessage( );
//Version
mess.setVersion(1);
//Report
mess.report = 0;
//feedBack
mess.feedback = 0;
//Encoding is 273
mess.encoding = 273;
//Char set is 819
mess.characterSet = 819;
//Format is MQSTR
mess.format = "MQSTR ";
//Reply qName
mess.replyToQueueName = replyQueue;
//Application data should be spaces
mess.applicationIdData = " ";

Does this work? Or is there any other way?
Also, where do i set the BUFFER_LENGTH in the MQPUT API?
Please help.
_________________
Thanks.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Sep 20, 2005 3:34 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I guess a good way to know if it works is to try it.

I don't think you need to set the buffer length in Java. It should handle that for you, when you do various writeXXXXs.
_________________
I am *not* the model of the modern major general.
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 » General IBM MQ Support » BUFFER_LENGTH in the MQPUT API
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.