Attached file provides library for executing java code in running java VM.
Why it’s needed:
Suppose you start system and want to print only some parameter of the system. But parameter contains in map. You write class-file, containing code for execution, which print this parameter. Tell the library where compiled class is located. And then the library executes written code and prints parameter in monitored system.
To execute java code you need enabled following options for monitored system:
1. Start JMX agent for monitored system
2. Put library jar-file to some place, where remote system can read this file.
How it works:
1. Client connects to remote system, loads the jar-file library using javax.management.loading.MLet mbean.
2. Client registers Runner mbean from the library.
3. Client tells Runner location of code. Runner loads and runs the code.
This library tested with Tomcat, JBoss, Geronimo and stand alone java application.
===================
Also this library contains mbean, which allows upload any data to remote system thru JMX.
Logged In: YES
user_id=1771510
Originator: YES
File Added: rrun.zip