code contribution

"Nikolay Chugunov" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Hi folks, I developed library, which can execute 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.


For more description see #1703457 bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=1703457&group_id=47745&atid=450647

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.