posted 22 years ago
Main problem with JNI is that it ties you to solving the specific problem in the specific environment, and my experience is that if something's really useful, people will come back demanding you employ it in ways you'd never have imagined.
While CORBA might have more overhead, it's more general (especially if you're one of those funky shops around here that wants to tie AS/400 RPG apps to Java - or at least other C++ apps), and it's probably going to be a little easier to maintain, since you have a consistent set of well-defined standards to work in.
CORBA got a bad name early because of initial compatability problems, but allegedly that's history.
Or was there something I don't know here?
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.