Menu

Remote code loading

ENGITEX

Remote code loading with JMP

Having JMP node running in a terminal ([Node admin panel]) makes it possible to run a code contained in RunnableWrapper derived class that is absent on the target machine.
JMP implements so-called dynamic code loading as described here: https://docs.oracle.com/javase/8/docs/technotes/guides/rmi/codebase.html

To do so, however, FTP server should be run on the "client" machine and this FTP server must be made known to the node.
The required steps are:
1. Start a server that points out at a jar containing the codebase, e.g. ftp://192.168.0.101/myClasses.jar
2. Add this link to the node with add jar ftp://192.168.0.101/myClasses.jarcommand in the admin panel
3. Admin panel will restart itself when no active tasks are left running and the codebase will be made available

Adding several jars available at different FTP servers is possible!


JMP premium version makes it possible to avoid running FTP server and makes sure all codebase files are encrypted when uploaded on the target machine.


Recommendations on FTP server:
A good example of free FTP server is Xlight FTP server
Stay with the standard FTP port 21.
Allow anon. user logins.


Related

Wiki: Node admin panel
Wiki: Overview

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.