I'm using JACOB in order to write message to a COM interface.
Dispatch dispatch = new Dispatch("<Interface Name>");
Variant response = Dispatch.call(dispatch, <DISPID>, message);
This works perfectly on localhost. But how can I use JACOB api to call interface on some other Machine/IP Address
JACOB seems to be unable to remotely access (DCOM call).
JACOB Project mailing-list FAQ
Solutions:
Alternatively, it may be useful if the locally working COM object supports remote access internally.
It seems like the following article.
Jacob connect to Remote Computer for WMI support
ADODB Recordset Example
The JACOB Project: A JAva-COM Bridge
Others seem to have other libraries, not JACOB.
A pure Java DCOM Bridge with j-interop
j-interop/j-interop/src/readme.htm
In Addition:
Similarly, it can not be called between computers connected via LAN.
Also, it is not possible to call local COM objects remotely with VC ++ or .NET language.
The workaround is to create a proxy application to call the local COM object on the remote computer.
Design the main application and the proxy application arbitrarily so that they can communicate with each other using a socket or other means.