File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes corba vs xml-rpc vs something with JNI? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "corba vs xml-rpc vs something with JNI?" Watch "corba vs xml-rpc vs something with JNI?" New topic

corba vs xml-rpc vs something with JNI?

alex earnshaw
Ranch Hand

Joined: Nov 05, 2001
Posts: 60
Hi all
I am modifying a C++ application in order to expose a public interface to some of it's functionality. The clients using this public interface will be in C++ or Java.
The options for the public interface which have been suggested to me are
CORBA (Orbacus orb which supports Java and C++ mappings)
Can anyone give me some pros/cons for using both of these. The interface I'm exposing won't be anything complex but it does need to be secure, i.e. over SSL. Also I don't want to mandate that clients use particular ORBs etc, i.e. I want to avoid any interoperability issues.
Also, would it be an option (or even a good idea) to use JNI on the server side - e.g. if I go with corba I would have a corba server implemented in java which maps the interface methods to the equivalent C++ functionaliyt using JNI. This would give me more options as to what I could use for the interface e.g. free Java ORB instead of Orbacus or even RMI (over IIOP to support potential C++ clients). Also the amount of C++ I would have to write would be minimal (I have v.little exp in C++ but lots in Java!).
Can anyone give me their thoughts on this? I'd appreciate it!
It is sorta covered in the JavaRanch Style Guide.
subject: corba vs xml-rpc vs something with JNI?