Posted: Tue Oct 05, 2004 8:12 am Post subject: Setting the MQMD_CodedCharSetId using Java
Newbie
Joined: 08 Sep 2004 Posts: 8
Hi,
We have a J2EE application communicating with the HOST systems using Websphere MQ. The target system is an IMS system and the communication is using an MQ-OTMA bridge.
We perform the following -
1) Construct the MQMessage() object
2) Set the MQIIH header fields in it
3) Set the message data
4) Construct the MQPutMessageOptions() object and set its value
5) Put the message on the queue.
We have to now make sure that the MQMessage Data and the MQIIH header fields have to be set in EBCDIC and in addition also to set the MQMD_CodedCharSetId = 500 as we cannot generate certain fields in the message data in ASCII.
How do i go about setting this field as mentioned and any sample code for the same will be very useful?
The conversion of all MQ Headers - MQMD and MQIIH will be taken care by the Websphere MQ.
Use the "characterSet" attribute of the MQMessage to set the coded character set identifier of character data in the application message data. _________________ siliconfish
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