• Post Reply Bookmark Topic Watch Topic
  • New Topic

Subject: C++ and Java Communication  RSS feed

 
Ashima_Java
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

Subject: C++ and Java Communication

In our current implementaion, we have a request object at C++ Client(unix enviornment) and this
object needed by Java based Engine for the proessing on the server side. Previously
we were using the webservice where we were creating Request.xml out of Request object
and passing it through web service to the Java Engine. And at the java end we were
again using "JAXB(Java API for XML binding)" to create Java objects out of Request.xml
than after processing we were sending Response.xml back to the C++ client.

So is there any way where we can take off or remove this XML layer part
and just enables C++ and java communication through objects.

can I go for CORBA

Best Regards
Ashima
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect you will find CORBA more complex than your present XML based scheme. What are you aiming for here, maximum speed or maximum clarity and flexibility?
For maximum speed you could use direct socket communcation sending byte[] blocks back and forth - of course that means lots of picky coding to get byte orders, etc etc, correct - but you can't get any faster.
How firmly defined is the C++ side request format?
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!