Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing HttpURLConnection in running jvm

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.

like image 793
shuttle Avatar asked Dec 09 '25 21:12

shuttle


1 Answers

you can try to using -DUseSunHttpHandler=true in the weblogic.

manage weblogic by using WLST (non-clustered)

add jvm arguments in the managered server env script under $WLS_DOMAIN_HOME/bin/setDomainEnv.sh

  JAVA_OPTIONS=-DUseSunHttpHandler=true 
  export JAVA_OPTIONS 

manage weblogic by using Weblogic console (Clustered)

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.

  • In the config file $WLS_DOMAIN_HOME/config/config.xml with xml-path server > server-start > arguments

like image 64
Ajax Zhang Avatar answered Dec 12 '25 09:12

Ajax Zhang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!