Thanks Chris, Yes , I also googled and see some post like that describes to use the proxy with programmatic code. And with the test code such as below could work in my environment without problem. But question is why it used to work without programmatic code but with JVM param. This probably more relates to the JVM spec. so I'll investigate bit further and share this if I find something. Thanks a lot for the clues.
--snippet /* * This is to use the proxy setting. */ private static final String proxyHost = System.getProperty("proxyHost"); //proxy port number private static final String proxyPort = System.getProperty("proxyPort"); private static int proxyPortNumber = -1; static{ if(proxyHost!=null && proxyPort !=null){ try{ proxyPortNumber = Integer.valueOf(proxyPort); // Using proxy access LogService.logInfo(RSSParserImpl.class, "Using proxy | proxyHost:"+proxyHost + " proxyPort:"+proxyPort); }catch (NumberFormatException ex){ LogService.logError(RSSParserImpl.class, "proxy port number should be numeric: " , ex); } } } -- //Using proxy access to retrieve the contents if(proxyHost!=null && proxyPortNumber > -1){ client.getHostConfiguration().setProxy(proxyHost,proxyPortNumber); } -- - Nori On Thu, Dec 16, 2010 at 8:50 PM, Christopher Schultz <ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Noriyo, > > On 12/15/2010 2:38 PM, Noriyo Koyama wrote: >>> Can you confirm that the JVM is reading them properly and using the >>> values you expect? >> >> System.getProperty("http.proxyHost"); could return the expected value. >> So I think the JVM has its value set. > > Okay, does "proxy-out" resolve to anything on your server? > >>> What code are you using to "access the external network"? >> Using HttpClient and there is no programatic logic to use the proxy. > > Google has a pretty good answer for "httpclient proxy": > > http://softwarecarnival.blogspot.com/2008/03/apache-http-client-and-proxy-settings.html > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk0KbZAACgkQ9CaO5/Lv0PA5MQCgk3g5OBkFxI4vph/DyL5pYWcT > CQAAmwXV0Q5iBoV2QRYAsoD6ZaH88bR3 > =LDix > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org