What is the best way to interface C# and Java?
<p>Hypothetically, you have two products, one written in Java, the other in C#. You like the Java based backend (non-user visible portion), but would like to use the C# (WPF) frontend. What is the best way to go about interfacing them? </p>

<p>Note that the backend must be able to run on either a server or on the local machine and the frontend should be able to connect to either one.</p>

<p>My first thoughts were to use something like <a href="http://www.zeroc.com" rel="nofollow">Ice</a>, or maybe a webservice.</p>

<p>And Go!</p>

<p><strong>Edit</strong></p>

<p>Converting the code or running it in some variety of neutral VM (IKVM) is not an option.</p>
