- npm
- dll
- gem
- perl package
- python package
- jar
- C#
- Javascript
- Groovy
- Ruby
- Perl
- Python
- GoLang
Javonet allows you to interact with any public class, methods, fields and other interface members without writing web services or creating gRPC protobuf. Regardless if you integrate same or different technology modules and services.
Write one code calling public interface methods and switch between single process or remote invocation with simple change in configuration file. Regardless of technology it will work so you can build single app or service with different tech modules.
Javonet bridges runtimes in-memory or remotely.
Runtime running your
application
Runtimes we can run in
your application
You will be able to load
and interact with them
Curious how it works? Try it out .
const { Javonet } = require('javonet-nodejs-sdk')
let resourcesDirectory = '.'
// use Activate only once in your app
Javonet.activate("your-license-key")
// create called runtime context
let calledRuntime = Javonet.inMemory().clr()
// set up variables
let libraryPath = resourcesDirectory + '/TestClass.dll'
let className = 'TestClass.TestClass'
// load custom library
calledRuntime.loadLibrary(libraryPath)
// get type from the runtime
let calledRuntimeType = calledRuntime.getType(className).execute()
// invoke type's static method
let response = calledRuntimeType.invokeStaticMethod("MultiplyByTwo", 25).execute()
// get value from response
let result = response.getValue()
// write result to console
console.log(result)
namespace TestClass
{
public class TestClass
{
public TestClass() { }
public static int MultiplyByTwo(int a)
{
return 2 * a;
}
public int MultiplyTwoNumbers(int a, int b)
{
return a * b;
}
}
}
Javonet calls are natively passed between runtimes omitting HTTP stack and managed code layers making them lightning fast. For remote calls its 70% less than WebServices meaning less compute time in cloud and lower carbon footprint.
Our team waits to answer your questions, do custom demo or prepare dedicated code samples.