I'm currently writing a test application that
should send messages between a Java app and a C++ app usung MQseries Messaging.
Looking through the documentation i've found, I can't find any easy ways to send compatable data (strings etc) accross.
Does anyone havre any good suggestions or places to look?
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
I've done the same thing in the past, and unfortunately, there is no easy way around this. I basically did things like have fixed length records (if I knew the length of what I was sending at compilation time), so my Java program would write out a 20 byte string for instance, and on the C++ side it would read 20 bytes and know that this corresponded to a string. But this means you must know exactly how the messages you are passing are structure at compile time. More flexible possibilities include using watermarks to indicate certain datatypes, or if you're more adventurous and want to be able to say that you are standards-compatible, use XML. Something like:
3642.91
would allow your java and C++ application to effectively pass datatypes.
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
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