Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to connect a COM-component with Java? (J-Integra?)

843829Sep 21 2001 — edited Dec 21 2005
I have a difficult problem. I hope, someone can give me an advice. Unfortunatly I don't know much about Java and COM. But I have to get in to it. Maybe there is a solution for that problem.

The problem:
I do not have a working COM-component , but I already have the the idl-file that describes how the component should look like. Now I'd like to build a java class that contains the functionality and than convert it to a COM-component that has the interface defenition of the idl-file (or wrap it somehow?).
Is this possible? I tried J-Integra, but it wasn't possible.

The second problem would be, if there is a way to connect this component to a C++ or VB program. Of course it's no problem if the Java-component was really converted to a COM-component, but it might that I only got wrapper classes or something like that. I know that this would be possible with J-Integra. But then I get another problem, because I need a communication in both directions at the same time. I didn't seemed to me, that this is possible with J-Integra. Or am I wrong?

I guess JNI as a solution is the wrong approach. I've heard about an JavaBeans/ActiveX-bridge. Could that help me?

If you wonder why I have to develop in such a strange way: It wasn't my idea. It's a requirement of a customer.

I don't know how to get on. I appreciate any help.
Robert Schneider
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 18 2006
Added on Sep 21 2001
4 comments
405 views