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 » General IBM MQ Support » MQ Data Conversion Question.

Post new topic  Reply to topic
 MQ Data Conversion Question. « View previous topic :: View next topic » 
Author Message
johndriscoll
PostPosted: Tue Jan 31, 2006 7:59 am    Post subject: MQ Data Conversion Question. Reply with quote

Newbie

Joined: 09 Sep 2004
Posts: 3

I have a program that sends data from a Z/oS cobol application that is using Xor to encrypt the data in the message. The target machine is a Unix Solaris machine. The Sending program encodes the data with a XOR and is in Ebcdic format. The receiving process expects the data to still be in that Ebcdic format when it recieves and decodes it.

When reading the data from the UNIX queue, using Java, the data comes through as converted ASCII format. We did not use the option of MQGMO_CONVERT because we wanted to read the data in as Ebcdic format. Does Java MQ actually convert the data as a default? Is there a way we could stop it from converting the data to ASCII?

Pedro El
Back to top
View user's profile Send private message
mvic
PostPosted: Tue Jan 31, 2006 9:29 am    Post subject: Re: MQ Data Conversion Question. Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

johndriscoll wrote:
When reading the data from the UNIX queue, using Java, the data comes through as converted ASCII format.

Hi, It may help us to comment if you could post a piece of Java source from your app that shows the error.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jan 31, 2006 8:56 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Working as designed!

Your message is in MQSTR format. It is subject to conversion exit or channel exit and if JMS read with conversion....

You need to leave the format blank so that it is recognized as bytes.

Your encryption scheme is not based on a character substitution table so why would you be able to decrypt once the qmgr tryed to convert ?

Once encrypted you truely have a byte message.

Anyway if you do use encryption why not go all the way and use a generated random key? There are very good explanation of the encryption concepts in the java JCE and JSSE packs. http://java.sun.com

As well you might want to read "Java Security Solutions" by Rich and Johennie Helton with an excellent introduction to elliptic curve cryptography...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQ Data Conversion Question.
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.