How to integrate Java and .NET quicker?

Tags

There is no doubt that Java and .NET cannot talk to each other out of the box. As this can be determined from the available online publications there are certain ways we can use .NET and Java together. The most common solution are the web services.

Although very useful and commonly implemented the web services may not be the best choice to integrate Java and .NET in some scenarios. One of the reasons is the performance of the communication highly impacted by HTTP stack not mentioning the need to expose the API in the network opening for security risks and connection reliability concerns.

In order to get what we want from .NET in the Java application we can either use web services, rewrite the whole application’s code or go with Javonet Runtime Bridging. There are different use cases where web services will just not work.

The web services will not help us in:
– communication between our application (Java) and the external physical device SDK based on .NET (i.e. robotic arm in the car manufacturing facility, Point of Sales, external electronic devices, drilling sensors, manufacturing machinery)
– embedding the .NET UI controls in Java applications (i.e. voice recognition, charts, CAD user control placed in the Java application’s window)
– back-end solutions like .NET data base drivers, AI algorithms and other used from Java application

Runtime bridging loads both .NET and Java in a single operating system process making it possible to establish real time native connection between Java code and .NET classes capable of interacting with any methods, fields, properties events, callbacks and any other public members of target API. No other solution provides this level of tight connection making it possible to call any .NET module with such flexibility and performance like as if both were created in Java.

Javonet is not a client-server solution and does not imply any serialization and deserialization to unified protocols like XML or REST as well as waives the need for any HTTP or TCP/IP communication stack, the transition of your calls between the two technologies (Java and .NET) has a minimal impact on the performance of your solution or application.

With Javonet you get unrestricted object oriented access to any .NET objects. Javonet overhead for each call between .NET and Java is around 10-20 millionth of a second allowing for up to 250 000 calls per second. Executing the same Java method from .NET via Web Services would take around 800 seconds which sums up to around 10 minutes. Therefore, Javonet is 1000x faster than web services technology.

.NET classes can be called from Java through Javonet API or you can convert any .NET DLL into strongly typed Java package using Javonet cloud service available at www.javonet.io

Time comparison of 250 000 calls between Javonet, native call and web service

Dependency on third-party component

It is common that the companies, especially in security sensitive industries like healthcare, defense, manufacturing or finance, are rather reluctant to third-party components dependency and licensing / activation challenges.

With Javonet we address these issues successfully. Different business-critical solutions are already based on our technology which is the proof for its reliability. What is more we provide the documented technical confidence that there is no additional business risk related to our technology.

The activation process of Javonet license may be done at compile-time so the license is validated only during the compilation of the solution which implements it. There are no calls or expiry issues in production environment. The target activation server of Javonet can be all shut down and it will not disturb the business continuity.

Moreover for built servers we are offering 180 days of grace period to guarantee business continuity in case of formal license renewal delays and access to Source Code Escrow with activation free version of component that would be released in case of any business risk putting us out of operations.