File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes Question on MQ Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Reply Bookmark "Question on MQ" Watch "Question on MQ" New topic
Author

Question on MQ

M Mehta
Ranch Hand

Joined: Aug 03, 2006
Posts: 92
HI All,

I am new to MQ and need to write a program which writes something to a queue. The queue will be read by other application. I have written the code and able to post the data to the queue. However, the problem is when the data is read from the queue, the message comes out in a byte[] format. whereas the expected is to be a String.

I am writing the message using

msg.writeString() method

and putting it putting it on the queue using

queue.put(msg, new MQPutMessageOptions());

Can somebody point me how to write a message so its read as a String rather than a byte[]?

Thanks,
Me
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Question on MQ
 
Similar Threads
How to set Message priority for JMS MQ?
Writing from MQ to an ISeries Data Queue
MQ for Java
Unable to set the userId in the MQ header
problem in reading message for IBM MQ series using IBM MQ classes