tags:

views:

48

answers:

2

I have a classic ASP/VBScript application that needs to call methods in a Java class. I discovered two products that apparently can do this: Java2COM and Java COM Bridge. Can you recommend one from experience, or is there yet another mechanism by which we can do this which is better? I'd rather avoid having to write C++ code if possible, although we could certainly create a COM DLL in VB6 that could in turn call low level APIs as necessary.

+1  A: 

To do this you basically need to have a COM Server that then uses JNI to create a JVM and make Java calls. It is a bit tricky and examples are scarce, which may make the products you have listed helpful. I can't vouch for either of them.

Alternatively, you may want to consider a web service based approach and get to the Java classes that way, depending on what they are and how you're using them.

Bert Lamb
Yeah a web service is the other option I'm considering. It carries some risks and I'm really trying to keep the latency down, hence my question here.
Dan
A: 

I've used JACOB in the (distant) past, and it seemed to get the job done. The price is right, but the documentation is somewhat lacking so that's something to consider.

Greg Harman
I've used JACOB but I'm pretty sure it does the opposite of what I want here - it allows you to create COM objects from within Java code and call methods on them. I want the opposite.
Dan