Hi, I'm searching for a way to attach a legacy windows application to our new OSGI based services. The legacy application is a C++ ATL application which heavily uses COM.
My current design consist of a native out of process COM server (ServiceHost) which runs Felix as OSGI container within a private Java virtual machine. It will implement several COM interfaces which route to their corresponding methods of the OSGI service using JNI. There will be a IControl interface to control the container lifetime with a subset of the methods in org.osgi.framework.launch.Framework (init(), start(), stop() etc.). I will implement an OSGI bundle "ServiceDispatch" which builds a bridge between the native ServiceHost and the OSGI container. It provides methods similar to the IDispatch COM interface. ServiceHost will expose the IDispatch COM interface and will route any call to IDispatch methods to the ServiceDispatch bundle. ServiceDispatch will dispatch the call to the correct bundle within the container and return the result. Any comments? Best Markus

