<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Proxy-Configuration for Java applications in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaa-p/865822#M292840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mirko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately, this servlet runs besides the portal on the WAS. Thus the proxy settings of the portal won't work for this app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right: I should have selected a different forum ... hope find a solution anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot and regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2005 06:49:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-24T06:49:18Z</dc:date>
    <item>
      <title>Proxy-Configuration for Java applications</title>
      <link>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaq-p/865820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm connecting to an url through a proxy within a servlet. For this purpose I entered the following coding &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	System.setProperty("http.proxyHost", "proxyserver.com");&lt;/P&gt;&lt;P&gt;	System.setPropery("http.proxyPort", "8080");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine so far. However I would like to specify these settings on a administrative level. Thus I entered the following configuration parameters in the configtool-&amp;gt;instance-&amp;gt;server:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        -Dhttp.setProxy=true&lt;/P&gt;&lt;P&gt;	-Dhttp.proxyHost=proxyserver.com&lt;/P&gt;&lt;P&gt;	-Dhttp.proxyPort=8080&lt;/P&gt;&lt;P&gt;	-Dhttp.nonProxyHosts="localhost|*.company.com"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However they don't work .. allthough they're properly written into the instance.properties file after restart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The test System.getProperties("http.proxyHost") just returns null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea why this doesn't work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2005 12:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaq-p/865820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-23T12:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy-Configuration for Java applications</title>
      <link>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaa-p/865821#M292839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you are posting your question in an EP forum I guess your servlet is running as an iView. If this is the case you can configure a HTTP-Proxy in the EP. This is pretty well documented under:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/33/8abf9e0ce011d7b84900047582c9f7/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/33/8abf9e0ce011d7b84900047582c9f7/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mirko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2005 06:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaa-p/865821#M292839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-24T06:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy-Configuration for Java applications</title>
      <link>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaa-p/865822#M292840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mirko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately, this servlet runs besides the portal on the WAS. Thus the proxy settings of the portal won't work for this app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right: I should have selected a different forum ... hope find a solution anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot and regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2005 06:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaa-p/865822#M292840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-24T06:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy-Configuration for Java applications</title>
      <link>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaa-p/865823#M292841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, no reason for me to give up &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In my opinion http proxy configuration is a big mess.&lt;/P&gt;&lt;P&gt;Possibly your setting are overwritten by an internal service on your WAS and therefor can not survive until you need them.&lt;/P&gt;&lt;P&gt;Because of that I would recommend using the Jakarta Commons HttpClient in your servlet:&lt;/P&gt;&lt;P&gt;&lt;A href="http://jakarta.apache.org/commons/httpclient/" target="test_blank"&gt;http://jakarta.apache.org/commons/httpclient/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has a good documentation and gives you full control over HTTP including proxy settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Mirko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2005 06:59:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaa-p/865823#M292841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-24T06:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy-Configuration for Java applications</title>
      <link>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaa-p/865824#M292842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mirko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well according to my understanding this approach doesn't provent creating a new configuration file storing the proxy settings, since the documented way to read System properties won't work either, right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since there will be different developing streams at this customer side which need a proxy additional configuration files will lead to inconsistency and a big administrative overhead...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2005 07:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaa-p/865824#M292842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-24T07:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy-Configuration for Java applications</title>
      <link>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaa-p/865825#M292843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephan, hi Mirko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if your app is a servlet app beneath the portal, if the portal is running, the service gets started with the portal and sets the system parameters itself from it's configuration (if there are any). See sourcecode of com.sapportals.portal.ivs.proxy.ProxyServerService (you'll have to decompile).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you can try to use this EP service as your central configuration point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, this does not explain why the settings -D... are not retrievable (for the EP service does not override them if no proxy is set within EP config; this at least holds for EP6 SP2 P32). I just tested it within my environment - setting -Dhttp.proxyHost=my.proxy.com has been retrievable, no problem at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some additional remark: "http.setProxy=true" must read "http.proxySet=true".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Detlev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 08:59:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/proxy-configuration-for-java-applications/qaa-p/865825#M292843</guid>
      <dc:creator>detlev_beutner</dc:creator>
      <dc:date>2005-05-31T08:59:14Z</dc:date>
    </item>
  </channel>
</rss>

