Jay, I've run into the same situation and it appears the solution is different depending on which way the message flows.
For JMS -> C, set the TARGCLIENT attribute on the Q object in the JMS context to "MQ" (the default is "JMS") and the JMS message that is produced will not have the RCF2 header attached so the C program is happy. For C -> JMS, it doesn't appear that the TARGCLIENT attribute has any effect. My C code generates a message just like it always does but in my JMS application I interpret the incoming message as a JMS TextMessage type and it seems to work fine. Haven't seen this 2nd part documented anywhere so I might just be getting lucky. -Ben -----Original Message----- From: Jay H. Lang [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 7:19 AM To: [EMAIL PROTECTED] Subject: JMS and MQSeries Hi List it has been some time since I have written, I am just getting started with JMS and am having trouble. I have a sending application written in C that is sending plain text messages. I have a receiving application written usung JMS to get and process the messages. I am having trouble getting the messages. Some of the errors: Sending program was using MQ Java classes: Caught exception: java.lang.ClassCastException: com.ibm.jms.JMSBytesMessage Reply message was not a TextMessage caught JMSException: javax.jms.JMSException: Retrieved the wrong type of message Sending program was a C program: <Exception occurred reading message body: javax.jms.MessageFormatException: MQJM S1046: The character set 437 is not supported><null> caught JMSException: javax.jms.MessageFormatException: MQJMS1046: The character set 437 is not supported linked exception: java.io.UnsupportedEncodingException: Cp437 I can't imagine that a JMS consumer of a message has to have the message produced by a JMS program. Seems to constrictive. Thanks for any help provided. -- Jay H. Lang Chief Technologist Distributed Computing Professionals Inc. IBM Certified Specialist - MQSeries 303 277-1873 - Office 303 807-9700 - Cell Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive