Posted: Tue Dec 10, 2002 7:20 am Post subject: MQ JMS_IBM_Encoding error
Newbie
Joined: 24 Jun 2001 Posts: 3 Location: Sunny Florida
I am writting a JMS Application using MQ 5.2.
I receive a message from the input queue and use the contents of the input message
to create an output message. I am required to set the Format, Coded Character Set ID and Encoding
of the output message the same as the input message.
Looking at the "Properties for Message"/"Data" tab in the MQSeries Explorer the following is specified for
the input
message.
Format: MQSTR
Coded Character Set ID: 819
Encoding: 273
I use the following code:
//Format
String format = message.getStringProperty("JMS_IBM_Format");
message.getStringProperty("JMS_IBM_Format") prints MQSTR
message.getStringProperty("JMS_IBM_Character_Set") prints null
and
int encoding = message.getIntProperty("JMS_IBM_Encoding");
throws the NumberFormatException
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