JBOSS 在 standalone.xml 中设置 http.proxyHost 和 http.proxyPort

JBOSS Setting http.proxyHost and http.proxyPort in standalone.xml

我在 运行 我的应用程序中使用 JBOSS 7.1.1。 我必须配置代理主机才能访问我的服务器。我尝试在 standalone.xml 文件

中设置更改

我将其添加为

<system-properties>
    <property name="http.proxyHost" value="My proxy Host here"/>
    <property name="http.proxyPort" value="My proxy Port here"/>
</system-properties>

但是我在我的服务器 运行 时添加了这个。我仍然无法通过代理连接。这些变化似乎没有反映出来。

服务器是否需要重启才能应用更改?

要应用独立 xml 文件中的任何更改,我们需要重新启动服务器。 仅在我重新启动后才应用更改。