Launch Java computation engine from .Net

I have a scenario where we wrote a Java domain-specific computation engine as part of a heavy Swing application. So far so good.

The new requirements now allow us to integrate part of this capability, namely the compute engine and its output, with another legacy product that is written as a web application in VB.NET. Is there a way:

  • Have a .NET web application call the Java compute engine and iterate over its output
  • It is also possible to call the same Java compute engine from a Java applet to represent output similar to the original Swing application (this shouldn't be heavy if the underlying assumption is that the compute engine is not Java-based changes)
  • Keep the compute engine as one codebase, so any changes made to one application are automatically reflected in others as well.

I've looked at other questions about invoking Java code in .NET languages, but haven't seen this dual use scenario before, and wondered if there was a suggested best practice.

+3


source to share


1 answer


What comes to mind would be to turn your Java engine into an endpoint on the Internet. This endpoint, such as a REST web service or something similar, will allow other applications to interact with your Java engine without worrying about how the engine itself is implemented.



It will also allow you to make changes to the Java engine and make them available to other applications as the logic will be in one place.

+2


source







All Articles