Logo
/
Sign in
Product Logo
ComfyJTeamDev

A bidirectional Java-COM bridge for working with COM/OLE/OCX or ActiveX objects in Java applications.

Vendor

Vendor

TeamDev

Product details

Work with COM/OLE/OCX or ActiveX objects in Java apps using a bidirectional Java-COM bridge.

Runs on Windows with JDK 1.3+, 32/64-bit

Clear API & Docs

Extensive documentation and dozens of examples.

Prompt support

Get reply from ComfyJ engineers within one business day on the support site or premium support service.

Proven expertise

Created by engineers who have been integrating Java with MS IE, Firefox, WebKit, Safari, and Chromium for 22 years.

COM-to-Java integration

COM Interfaces & Data Types Wrappers

COM interfaces & data types wrappers allow working with COM types and interfaces like ordinary Java objects. For example, you can use IUnknownIClassFactory, and IDispatch as typical Java interfaces, and Variant(VARIANT), BStr(BSTR), SafeArray etc. as regular Java types.

COM Memory Management

All COM and other native resources will be garbage-collected automatically, or you can release them if required by the application logic.

VTBL & COM Automation

ComfyJ allows invoking methods of a COM object via its function indexes in VTBL (Virtual Method Table), or by its names using the Automation approach. Also, Automation allows for obtaining and setting properties of a COM object, including indexed and named ones.

Support for Multiple Threading Models

ComfyJ provides a set of different concurrency models which you can use for initializing COM integration in your Java application.

DCOM Support

ComfyJ allows you to create a COM object on a remote server.

Handling of COM Events

ComfyJ provides a standard COM technique for creating and advising COM event handlers to a COM object.

Embedding of OLE/OCX/ActiveX Components to Swing

ComfyJ includes the OleContainer Swing component, which allows you to:

  • Use any visual COM component (OCX/ActiveX) in Java Swing UI. Using this functionality, you can embed various ActiveX applications, such as Internet Explorer, Acrobat Reader and Microsoft Office, as well as various media components such as Windows MediaPlayer, DVD Player, QuickTime, ShockwaveFlash, etc.
  • Create an embedded object using ProgID, CLSID, or from a document file. Also, you can insert a COM object (which implements IOleObject COM interface) into container.
  • Save and load an embedded OleObject to or from a file in a special binary format.

Java-to-COM integration

This aspect of ComfyJ allows you to create Java COM servers purely in Java. In other words, a designed Java COM server can be exposed as COM objects to other COM applications without writing a line of a native code.

Development of Java COM Servers

To simplify creation of custom Java COM servers, ComfyJ provides the base classes such as IUnknownServer and IDispatchServer so any custom Java COM objects can inherit these classes, depending on application requirements. Such Java COM servers can implement as many COM interfaces as required—from standard COM interfaces and COM interfaces generated by ComfyJ’s Code Generator application, to custom ones.

Registration of Java COM Servers

ComfyJ also provides convenient ways for registering created Java COM servers. Such registration can be performed at runtime, i.e., for COM event handlers, or in COM Registry using a bundled ServerManager application. Also, you have the ability to register Java COM servers at runtime without using the ServerManager application. Such registered Java COM servers can be used by other COM applications.

CodeGenerator utility

With this bundled application, you can generate Java COM wrappers for COM components or COM Type Libraries. These generated classes allow you to work with COM objects just like regular Java objects. Moreover, this application can compile the generated classes and pack them into a JAR file, if needed.

Examples of apps our customers build

Java applications which integrate with MS Office components

and provide ability to create, edit and display various Office documents such Word, Excel, PowerPoint documents. ComfyJ provides OfficeContainer component for embedding Office documents.

Java applications which embed various system (such as MediaPlayer, InternetExplorer, etc.) and third-party (such as PDF Viewer, Shockwave Flash Player, etc.) ActiveX components directly to Swing UI.

ComfyJ provides OleContainer component that allows to embed any ActiveX component into Java Swing UI.

Java libraries which integrate with various COM Type Libraries.

ComfyJ gives Java applications great flexibility to integrate with any COM Type Library. ComfyJ Code Generator provides the ability to create the Java wrappers for COM types from a COM Type Library.

Java applications which expose Java classes to COM.

ComfyJ provides ability to create COM classes directly in Java and expose them as Java COM servers so that another COM applications can access them via COM.

Find more products by category
Development SoftwareView all