ssh - calling java methods from a terminal -



ssh - calling java methods from a terminal -

suppose have java program, myprogram.jar, have running on server. start programme type terminal:

>java -jar myprogram.jar

and programme go on run indefinitely. if programme had function such as

void processinput(string text){ //process text }

and wanted ssh server , phone call function particular string? log server @ time , alter state of program. possible?

this can done, not easily.

there standard ways accomplish want: mbeans. take @ http://docs.oracle.com/javase/tutorial/jmx/mbeans/standard.html

java ssh cmd

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -