We can call java classes and functions from MIRTH CONNECT.
First we need to create a class:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example; | |
| public class JarExample { | |
| public String sayHello() { | |
| return "Hello, World!"; | |
| } | |
| } |
Then we need to compile the code and create a jar file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var obj = new Packages.com.example.JarExample(); | |
| logger.info(obj.sayHello()); |
Leave a comment