Search code examples
java.net.net-corermi

.Net Core Java RMI Calls


I am looking at upgrading a Java server applications UI. The stack the team has decided is Electron with a .NET Core rest api and it is going well, however we do not have enough time to migrate all the code over to .Net Core and must keep most of the code on the java side. Originally it used RMI calls to talk between the Swing Java interface and Java service. We need to interface with RMI calls though .Net and its not going well.

After some research we came across IIOP.NET however this is not a .Net Core library and does not seem to be support anymore At this point my research has come to a stand still I even went to the second page of Google. Does anyone have any ideas how we could approach this problem?


Solution

  • need to interface with RMI calls though .Net

    Yeah I don't think that's going to work. RMI wasn't designed to be used with anything other than Java. It's tightly coupled with the serialized object format, and generally a pain in the neck to deal with.

    It will be easier to add a REST API to the Java service, which you can then call from .Net or from the Electron app.