Posted: Mon Sep 19, 2005 11:47 pm Post subject: BUFFER_LENGTH in the MQPUT API
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.
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.
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