General question on Java/COM bridging

A general question that I hope Windows Java developers can answer for me...

A company develops and sells a commercial ActiveX component for Windows. In the Java world, is it the Java developer that takes care of integrating the component into their app, using a JNI wrapper creation tool of their choice (eg. Java2com, Jacob, JacoZoom, etc.)? Or is it down to the company itself to supply a JNI wrapper?

Thanks in advance (and please excuse my ignorance!)

[474 byte] By [calzakka] at [2007-11-26 14:51:07]
# 1

To write JNI code for integrating of an activeX is not a simple task. You will face with a number of problems related to COM:

- when and where to call CoInitialize and CoUninitialize,

- how to clean up COM references on Java Application exit,

- when to do Thread Marshal and when it is not needed for COM interfaces;

- how to Marshal and Unmarshal COM parameters in Java methods calls to COM Interface methods, etc.

The best decision is to use some Java-COM Bridge.

My company has developed tools like

- Java-COM Bridge

- Object-Oriented JNI SDKs for C++ and .NET (v1.1,v.2.0) languages (do not mix with JNI wrapper generators). These are an object-oriented maps of the regular JNI SDK,

- Add-Ins for MS Visual Studio v.6.0 and v.7.1 that generate Java wrappers in C++, C#, J#, MCpp, VB for Object-Oriented JNI SDK.

So we know problems you have.

See our site

http://www.javain.com

vitallisa at 2007-7-8 8:39:16 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

> A company develops and sells a commercial ActiveX

> component for Windows. In the Java world, is it the

> Java developer that takes care of integrating the

> component into their app, using a JNI wrapper

> creation tool of their choice (eg. Java2com, Jacob,

> JacoZoom, etc.)? Or is it down to the company itself

> to supply a JNI wrapper?

I suppose it could go either way

CarrieHunta at 2007-7-8 8:39:16 > top of Java-index,Java HotSpot Virtual Machine,Specifications...