Link Java and .NET Applications

I don’t think it’s entirely possible or if it is recommended to do it ... but is there a way to connect or link or deploy a Java and .NET application for a method next to web services. I mean, I understand that there is a messaging server that allows a Java application to communicate with each other, but I don’t know if it can cross the development environment, any suggestion about it or thoughts about it?

I am limited to the web environment and the desktop.

+3
source share
4 answers

Apache Thrift is the way to go. You will need to write a service definition as follows:

serivce helloworld{
    string sayHello(1:string name)
}

Thrift RPC- . , Java, #, PHP, Python. Thrift TCP/IP, . wiki http://wiki.apache.org/thrift/

+3
+2

Java-.Net Hessian ( JSON), Thrift.

0

Virtual machines (JVM vs CLR) are not going to talk to each other, except through an open OS level standard. Shared files (yuck), Sockets, and Web Services come to mind. There is nothing that would allow you to call the .net routine from java or vice versa.

-3
source

Source: https://habr.com/ru/post/1774013/


All Articles