ct: Re: Java question
List
<[EMAIL PROTECTED]
C.AT>
12/18/2003 11:59 AM
Please respond to
MQSeries List
Hi Rick,
Here's what I do in my Java progr
Hi Rick,
Here's what I do in my Java programs:
- For String data, I use writeString()
- For raw data (byte), I use write()
i.e.
String text = "Hello World";
MQMessage sendmsg1 = new MQMessage();
sendmsg1.writeString(text);
byte[] byteData = new byte[text.length()];
byteData = text.getBytes();
M
QSeries List [mailto:[EMAIL PROTECTED] Behalf Of Rick
Tsujimoto
Sent: Thursday, December 18, 2003 11:17 AM
To: [EMAIL PROTECTED]
Subject: Java question
I have a Java coder who wrote a simple MQ program that put a single message
to a queue. He used the writeUTF method to put the message
.CANON.COM>cc:
Sent by: MQSeries List Subject: Java question
<[EMAIL PROTECTED]>
12/18/2003 11:16 AM
Please respond to MQSeries
List
I have a Java coder who wrote a simple MQ program that put a single message
to a queue. He used the writeUTF method to put the message. But, when
another application, e.g. non-Java, tried to read it, it turns out that 2
extra bytes prefix the message. These 2 bytes seem to be the length of the
m