Posted: Mon Jun 03, 2002 7:50 am Post subject: considerations for Java to non-Java communication?
Novice
Joined: 03 Jun 2002 Posts: 13 Location: Philadelphia
Hi,
I'm new to MQSeries. I'm a java programmer developing on a sun solaris box. I need to write an application that will communicate with a program run on an AS400 machine (implementation language undecided, but not Java).
I have succesfully written test programs in Java to send and receive messages using the writeUTF() and readUTF() methods respectively.
I'm looking for any pointers regarding how to handle the communication with a different platform and implementation language.
1) I presume I will be unable to continue using the writeUTF() and readUTF() functions.... is this correct?
2) I read somewhere that it is recommended to use plain character strings for communication across systems (I plan on using XML anyway). Does this mean that I have to agree on a limit to the size of the strings being passed over?
3) Are there any other considerations you think I should keep in mind.
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
To answer to your questions
1) Yes. There is a field within the mqmd that needs to be set to MQSTR
Also since you are sending to an EBCDIC machine your channels should have the convert parameter set to YES
2) As far as message limit, the default is 4mb for a single message unless you have v5.2 on the AS400 which should support 100mb.
There are provisions provided to segment messages if you need bigger messages.
3) Always use the MQGET with convert on. _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
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