Tuesday, October 27, 2009

Java Network Proxy Settings

If our application wants to access external content where our system needs to go through proxy server, then we have to give http proxy details to access via proxy server.

For instance, to enable proxy for xdk tool, set -Dhttp.proxyHost , -Dhttp.proxyPort as below

java -cp .\xml.jar;.\xmlparserv2.jar -Dhttp.proxyHost=www-proxy.xyz.com -Dhttp.proxyPort=80 oracle.xml.parser.v2.oraxml -schema abcd.xml

Please find more details http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html

Reactions:

0 comments:

Post a Comment

Recent Posts

Unix Commands | List all My Posts

Texts

This blog intended to share the knowledge and contribute to JAVA Community such a way that by providing samples and pointing right documents/webpages. We try to give our knowledege level best and no guarantee can be claimed on truth. Copyright and Terms of Policy refer blogspot.com

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More