Posted: Thu Apr 28, 2011 11:35 pm Post subject: CCSID Problems while connecting to QManagers
Novice
Joined: 03 Feb 2010 Posts: 13
Hi,
I am trying to connect to a QManager with japanese CCSID using PCFMessageAgent, I got ReasonCode 2195 which is a conversion error. If I am correct CCSID by defaults to 819 for MQClient (in windows english version).
So, I used the following code to change the CCSID of the MQClient based on the QManager to which I am connecting.
Code:
MQEnvironment.CCSID = 932;
agent = new PCFMessageAgent();
agent.connect(<IP>,<PORT NO>,<Channel>);
agent.setCharacterSet(932);
When I used this it fixed my problem (getting listener and channel details from QManagers running with different CCSID's). Is it the right way to handle this. please suggest me.
Also can any one help me understand how to manage the connections using the default MQConnectionManager. If you have any sample code, kindly share it (I searched this forums and also google, but was failed to get any information about how to use connection manager with pcfmessage agent or a sample code for that).
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