Re: Interoperability Java - C++
Posted By:
Todd_Stout
Posted On:
Wednesday, December 17, 2003 06:44 AM
I think you need to consider the cost
of JNI. JNI is not simple if you
need to do sophisticated things such
as asynchronously invoke Java objects
from native C++ code. In my opinion,
CORBA can be a better fit in many situations.
It is much easier to deal with when the
interaction between the C++ and Java code
is complex. CORBA also allows you to keep
your Java code pure java. This can have
a major impact if portability is important
to you (not to mention VM stability and
debugging complexity). One major advantage
of CORBA is that if you create a CORBA interface
for your java code, then it can be accessed
from many programming languages other than C++