Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transering data across networks / languages

Status
Not open for further replies.

zaphy2k2

Programmer
Dec 23, 2001
30
GB
Hi.

I have data that i need to stream to a socket / another machine. The client is in C++ (windows and macintosh compatible), and the server is in Java.
XML in C++ (Xerces) you cannot write an XML document out easily after creating it (Unlesss someone has a nice way of doing this plz?). I was thinking either CORBA or RMI, but then i need JNI on the client, so i need java then. I dont really know CORBA, is it easy in C++? Are there any good examples out there, or does anyone have a good suggestion of how i can do this easily? RMI?CORBA would remove the winsock crap i have at the moment, but bring its own problems. Transferring objects would be ideal of course, but then you tigtly couple the client and server, which i would like to remove.
What about just Using Http, is that Mac/Win x-platform libraries?

cheers
z
 
What are you talking about? Going on the title of that post (the only bit that makes sense), then you want to use DCOM, which is language independent.
 
I think what he wants is the same thing I've been wondering for a while; let me make it simpler.

If a server is in Java and a client is in C++, what's the best way to transfer data between them?

(Even if that's not the question he intended, I'd still like to know its answer. ;-))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top