Using Isis2 from Java

Feb 6, 2014 at 11:32 PM
A number of people have asked how would use Isis2 from Java. This article can help:

http://www.javaworld.com/article/2073142/data-storage/migrating-java-applications-to--net.html

As you will see, one option is to use a system called J#. With it your Java code runs without changes on .NET. On the other hand, you end up with a solution that won't port back to Linux because Mono lacks a J# compiler.

For this reason, the "best" option is to use a package called the JLCA. You run it on the Java code, and it magically generates C# code that calls the native .NET library methods. This gives better performance and better interoperability. But the resulting code behaves in the identical manner to the original Java. In fact it even looks nearly identical: JLCA works because C# and Java are really almost identical languages. Thus not that many things need to be changed, and this top to bottom editing is how JLCA works.