ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Charachter set Problems

Post new topic  Reply to topic
 Charachter set Problems « View previous topic :: View next topic » 
Author Message
jigjim
PostPosted: Thu Jun 03, 2004 7:58 am    Post subject: Charachter set Problems Reply with quote

Apprentice

Joined: 30 Mar 2004
Posts: 41

Hi,

I am putting a IMS formatted msg on an IMS bridge queue and reading it from a local queue using JAVA. I am getting a lot of unwanted charachters and bad formatting. Can somebody help me with charachter set conversion.

This is how i send the msg:
Code:
msg = new MQMessage();
msg.messageType = MQC.MQMT_REQUEST;
msg.format = MQC.MQFMT_IMS;   
msg.replyToQueueName = replyQ;
      
MQPutMessageOptions pmo = new MQPutMessageOptions();
         
msg.writeString("IIH ");   // MQIIH_STRUCT_ID
msg.writeInt(1);            // MQIIH_VERSION_1
msg.writeInt(84);                                // MQIIH_LENGTH_1
msg.writeInt(0);                                 // 4 byte reserved 
msg.writeInt(0);                                 // 4 byte reserved
msg.writeString("MQIMSVS ");                     // MQFMT_IMS_VAR_STRING
msg.writeInt(0);                                 // MQIIH_NONE
msg.writeString("MASTER  ");                     // 8 byte ltermoverride
msg.writeString("MODU03  ");                     // 8 byte mfsmapname
msg.writeString("MQIMSVS ");                     // MQFMT_IMS_VAR_STRING
msg.writeString("        ");                     // 8 byte authenticator
msg.writeString("0000000000000000");             // 16 byte transid
msg.writeString(" ");                      // QITS_NOT_IN_CONVERSATION
msg.writeString("0");                            // MQICM_COMMIT_THEN_SEND
msg.writeString("C");                            // MQIIS_CHECK
msg.writeString(" ");                            // 1 byte reserved
   
String data = "CMDMASK DIS TRAN NSOPXPAR";
short LL = (short)(data.length() + 4);
short ZZ =0;

msg.writeShort(LL);
msg.writeShort(ZZ);
msg.writeString(data);
         
q.put(msg, pmo);


Here is the response:
Quote:
TRAN CLS ENQCT QCT LCT PLCT CP NP LP SEGSZ SEGNO PARLM RC
NSOPXPAR 1 0 0 5 20 7 7 8 0 0 1 0
PSBNAME: NSOPXPAR
STATUS: BAL( 0)
*04155/114524* SOPT


They have funny characthers in the front of each line except the first line. but when i use the "Character.getType" method they return the value 15 and sometimes 12.

Can somebody help me on how to covert this message into windows/html compatible display strings.

thanks

Jigs
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Charachter set Problems
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.