Friday, May 9, 2008

Java and dot Net Integration with IKVM

A coworker of mine recently discovered a great Java and dot Net integration tool at IKVM.net. It is a customized JVM written in dot Net that provides a mechanism for dot Net to access Java code. I was skeptical at first, but have since been quite impressed with how well it works. We have a need for just such a tool on one of our current projects. As an interim solution we need to allow a dot Net application to access our Java framework. The distributed Java code uses RMI to communicate between modules. We provide a lightweight 'connector' that hides the communication layer and exposes public methods for the dot Net client. In the future we may provide web service style access and forgo the IKVM approach. But having done dot Net -> Java web services in the past I am not excited about doing it again.