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 IndexIBM MQ API Supporttransfering data in messages between Java and C++

Post new topicReply to topic
transfering data in messages between Java and C++ View previous topic :: View next topic
Author Message
danabel
PostPosted: Wed Dec 12, 2001 5:36 am Post subject: Reply with quote

Newbie

Joined: 11 Dec 2001
Posts: 4

Hi

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?

thanks

Dan
Back to top
View user's profile Send private message
bduncan
PostPosted: Wed Dec 12, 2001 10:19 pm Post subject: Reply with quote

Padawan

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
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API Supporttransfering data in messages between Java and C++
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.