Embedding an external application into Jtrix is simply a case of allocating resources (networking and disk) and then executing the main() method of the application. Here's an example.