|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Converting TextMessages from UTF-8 to EBCDIC |
« View previous topic :: View next topic » |
Author |
Message
|
joerg.sailer |
Posted: Mon Aug 09, 2004 1:14 am Post subject: Converting TextMessages from UTF-8 to EBCDIC |
|
|
Newbie
Joined: 09 Aug 2004 Posts: 4 Location: Germany
|
Hello,
I implemented a small Java-program based on the ASF-Samples of IBM and it works fine with sender and receiver on windows and/or unix-systems. If the receiver is on the Mainframe the messagebody does not get converted to EBCDIC. I tried a lot, but I did not get a solution how to set the type of the destination object, so that it will be correctly transformed.
Hope someone can help
Joerg |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Aug 09, 2004 5:30 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Your mainframe program is doing the wrong thing. Your java program is likely correct.
Your mainframe program needs to specify the CONVERT option to the MQGET. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Aug 09, 2004 2:17 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Jeff is quite correct.
Now if you have too big a discrepancy between your MQ versions and cannot get the mainframe's get with convert option to work right ..., we used some trick using JMS.
In the JNDI settings for the queue to the MF specify ccsid = 500. This way the Mainframe did not have to translate.
You could as well alternatively have the sender channel translate.
Enjoy |
|
Back to top |
|
 |
joerg.sailer |
Posted: Wed Aug 11, 2004 11:18 pm Post subject: the solution |
|
|
Newbie
Joined: 09 Aug 2004 Posts: 4 Location: Germany
|
Hi,
I found one possible solution, this is as follows:
mark the sending queue as non JMS-Queue with:
((MQQueue)mqq).setTargetClient(JMSC.MQJMS_CLIENT_NONJMS_MQ);
and on the TextMessage set the JMS-Properties:
mvsProperties.put("JMS_IBM_Format","MQSTR");
mvsProperties.put("JMS_IBM_Character_Set","1141"); // DE with €
these properties override the MQ-header data
Thanks to all and GOOGLE
Joerg |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Aug 12, 2004 8:50 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
You could probably have gotten away with using a TextMessage and having the MQSTR format supplied for you. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|