简体   繁体   English

如何从webapp访问码头服务器?

[英]How to access jetty server from webapp?

I would like to edit Connectors on the fly on my web-app code. 我想在我的Web应用程序代码中动态编辑连接器。 However, for achieving this, I need to access the server from the web-app. 但是,为了实现这一点,我需要从Web应用程序访问服务器。 How can do this access? 如何访问? It was tried going up from the JMX but it did not work either. 尝试从JMX向上运行,但也没有用。

At my case, using JMX was the solution. 就我而言,使用JMX是解决方案。 I looked at the MBeans and I found out Beans directly related to what I wanted, I iterated over the beans and performed my actions over the right ones. 我看了看MBean,发现与我想要的东西直接相关的Bean,对这些Bean进行了迭代,并对正确的Bean进行了操作。 This way, I could start/stop them and get the effect I wanted to. 这样,我可以启动/停止它们并获得想要的效果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM