J-Integra® and COM events

If a COM Class can generate events (has a source interface), then J-Integra®'s com2java tool, will generate Java code which allows Java objects to subscribe to the event using standard Java semantics. For information on the generated files, please read the relevant section of the com2java documentation.

For information on using the generated files, take a look at the Excel Example, which has a bonus step in which you can subscribe to events generated by Excel.

In summary, if a COM Class has a source interface that is defined in the same type library as the class, then J-Integra®'s com2java tool will do the following:

From a Java programmer's perspective there is nothing really else to it. You use the standard Java event techniques -- you implement the event listener interface, and then subscribe to the event using the addXYZListener method.