How java communicate with c++ (experts please take a look)
I encounter problems in my new project.
My client uses websphere as their app server and put ejb on it. They are now trying to introduce an image server on another machine to deal with image processing function. The image server provides some visual c++ lib calls and functions for programmer to work for, but it doesn't support java. So my client now asking me to write some java package for the websphere which hidden all c++'s works and call the image server to work(the 2 servers is distributed).
I start investigation from JNI at first. however, I found that JNI needs customizes the C++ code and of course i won't have it. So I give up this. Then, I start thinking to put a layer on the C++, and then use JNI to deal with this c++ layer. These steps I think should be on image server. So the next step is use RMI or Corba to communicate the websphere and image server, right?
I dont know whether this can be work or not, but I feel its to complex. I then think whether I can directly access the c++ file on the image server if I just know the image server's dll or function. I even dont know whether the image server have COM or support corba...
Can expertists give me some suggestions or reference!?
Thx a lots!!

