在运行jvm时更改HttpURLConnection [英] Changing HttpURLConnection in running jvm
问题描述
是否可以在jax-ws中更改http处理程序?
例如:从weblogic.net.http.HttpURLConnection到sun.net.www.protocol.http.HttpURLConnection。
Is it possible to change the http handler in jax-ws? For example: from weblogic.net.http.HttpURLConnection to sun.net.www.protocol.http.HttpURLConnection.
推荐答案
你可以尝试在weblogic中使用 -DUseSunHttpHandler = true
。
you can try to using -DUseSunHttpHandler=true
in the weblogic.
管理weblogic by使用WLST(非群集)
在 $ WLS_DOMAIN_HOME / bin / setDomainEnv.sh下的managered server env脚本中添加jvm参数
JAVA_OPTIONS=-DUseSunHttpHandler=true
export JAVA_OPTIONS
使用Weblogic控制台管理weblogic(Clustered)
将 -DUseSunHttpHandler = true
添加到a或b中的参数。
Add -DUseSunHttpHandler=true
to Arguments in a or b.
-
在管理控制台中导航至
主页
>服务器摘要
><托管服务器名称>
>配置
>服务器启动
标签。
In Admin Console navigate to
Home
>Summary of Servers
><managed server name>
>Configuration
>Server Start
Tab.
在配置文件 $ WLS_DOMAIN_HOME / config / config.xml
中,xml-path 服务器
> server-start
> 参数
In the config file $WLS_DOMAIN_HOME/config/config.xml
with xml-path server
> server-start
> arguments
这篇关于在运行jvm时更改HttpURLConnection的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!