Posted: Wed Apr 11, 2007 10:16 pm Post subject: Writing message to queue from file
Novice
Joined: 10 Jul 2006 Posts: 16
Hi all,
I have a message (containing the headers and body) which is stored in a text file. Now I want to write this message to an MQ queue. For doing this I want to write a small piece of code in java.
I could manage to read the entire file and store it in a String or byte array. But I need to convert the String / byte array to MQMessage before I can write it to the queue without changing the headers.
How can I do this ? Is there any way to convert a String / byte array to MQMessage ?
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