我使用weblogic示例:
http://groovy.codehaus.org/Groovy+and+JMX将jmx与groovy连接
问题是连接时间太长:
long time = System.currentTimeMillis(); println System.currentTimeMillis() - time; def server = JMXConnectorFactory.connect(serviceURL,h).MBeanServerConnection println System.currentTimeMillis() - time;
我有大约200个groovy脚本.每个脚本都在做其他事情,但都需要连接到jmx.当我想要执行所有操作时需要大约一小时甚至更长时间.有没有选择如何更快地做到这一点?
解决方法
所以答案很简单.我需要使用这个项目:
http://kobo.github.io/groovyserv/