Are you talking to me? Making sure your Queue Manager and Java application are using the same code pages
Gregory(Greg)Bowman 1000007M77 Comments (2) Visits (19105)
A WebSphere MQ queue manager and a Javatm or JMS application need to use the same code pages in order for them to talk to each other. If the queue manager is using a code page that the Java environment does not support, then they are basically speaking different languages and will not understand each other.
The queue manager uses a property called Coded Character Set Identifier (CCSID). The CCSID is the code page the queue manager uses to encode String data that is returned to an application. For example, if an application makes an MQINQ call, the String data in the MQINQ reply that gets returned to the application would be in the CCSID of the queue manager. If the Java or JMS application does not support that CCSID then it will be like my mom trying to understand a phone text message. She could see it but that does not mean she would laugh out loud when she saw an "LOL".
There is an excellent technote written by Paul Titheridge with the Hursley MQ support team which details the symptoms you might see when the queue manager and Java or JMS applications are not on the same page. For example your application may see WebSphere MQ Reason Code 2195 (MQR
The solution to this problem is fairly simple. You simply need to be sure your queue manager uses a code page (or CCSID) that is supported by your JRE. You can use the Java program in the technote referenced above to find out what code pages you can use. Also, there is a Java webpage which lists all of the possible Java Character Sets and gives a description of each. This will help you better understand what the code pages are and how they are named. Here is the link to that webpage: http
Once you have decided which CCSID to use for your queue manager you can use the ALTER command to change the queue manager CCSID parameter. The WebSphere MQ v7.0 information center discusses the ALTER command if you are looking for details on how to change the queue manager CCSID.
Once your queue manager and Java or JMS applications are using the same code pages, they will understand each other and you will be so happy you might LOL.
Additional Items related to Java and Conversion: