开发者

How to administer a remote java program?

I want to build a GUI to administer a开发者_如何学Go remotely executing java program (view status of executing tasks, load/start/stop tasks), but nothing complicated.

My best idea so far is to use CAJO.

Is there another approach that might be superior?

The Java program is a standard Java SE executable. It is not part of a web app.


The standard way is to use JMX. You can access JMX over HTTP as well. This is the cheapest but not the nicer solution because UI of the standard JMX console is not the best UI I have ever seen :).


Creating a simple ReSTful API on the remote JVM might be a simpler alternative, depending on the circumstances. JAX-RS makes it very easy. I have experience with Jersey myself, and you can get it up and running in about five minutes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜