Reputation:
We've developed a Java application and would like to use this application from a C# client. The application has dependencies on Spring, Log4j, ...
What would be the most efficient mechanism - make DLL(s) from Java code, ... - to achieve this ?
Upvotes: 28
Views: 48737
Reputation: 152
There are so many options,
sockets
web services
Message bus
Use a/any database! (sorry if sound silly)
Here's a discussion which may be handy: https://gridwizard.wordpress.com/2015/01/14/java-and-dotnet-interop
Really depends on what you're building!
Upvotes: 2
Reputation: 3457
I am author of jni4net, open source interprocess bridge between JVM and CLR. It's build on top of JNI and PInvoke. No C/C++ code needed. I hope it will help you.
Upvotes: 15
Reputation: 55760
alternatively you could write a webservice/xmlrpc layer between the two.
I seem to remember that there is a tool calles grassshopper that will compile your .Net code into JVM bytecode.
I've also heard good things about IKVM
Upvotes: 2