General J2EE: JNI / COM (VB) Integration
- Posted by: Preeti Ramesh
- Posted on: December 17 2001 01:18 EST
We are doing a project which requires our Java Client to call DLLs in written in VB.
As far as I am aware, till JDK v1.1, JNI supported C/C++; and for DLLs in VB, we had to use one of the solutions provided by M$ as long as the M$ JVM was used.
However, our company does not want to use the JVM provided by M$.
I want to know whether JNI currently supports VB (i.e. JDK v1.3 / v1.4 ), or is there any other way to work around this problem..?
Thanks in advance.
- JNI / COM (VB) Integration by Venket Raman on December 17 2001 16:24 EST
There is CORBA(RMI/IIOP)/COM Bridge to talk to the other world(Microsoft). This bridge is available as a vendor product to talk to COM component for running a method in the other world, get the results back. Thus bridge will take care of converting datatype from the other world into JAVA and vice versa. [It is a huge project if you want to build the bridge.]
There was an article at www.onjava.com recently about an open source bridge
Use j-Interop (http://j-interop.sourceforge.net). It's a pure Java implementation of COM protocol and is under LGPL license. Thanks, best regards, Vikram
Thank you for library reference very useful.