Setting Proxy for HTTPs Connections

Hi,
I have a multi-threaded program where i need to decide which gateway system i would need to post my http requests.
Both these gateways (eg, GW1, GW2) have to be accessed by proxy. Currently i set the proxy and port as follows:
System.setProperty("https.proxyHost",PROXY_HOST);
System.setProperty("https.proxyPort",PROXY_PORT);
But, this gives me a problem as thread 1 ends up with the proxy details for GW2 and vice versa.
Any workaround apart from setting this on the system level.
I do not intend to run two seperate instances of JVM.
Appreciate your time and input :)
- Cheers
Sakthi

This is called concurrency, and the object needs to be locked while one thread is using it and then relased so the other thread can use it.

Similar Messages

  • How to set proxy for 3G connection?

    Can anyone tell me where to set proxy for 3G connection?
    I think I've checked every section in Settings but failed to find anything.
    Thanks for your info.

    It's part of the cellular settings, and is usually set up by your 3G provider. You can't choose your own proxy server

  • Setting up a https connection between SAP CRM and genesys gplus adapter

    Hello All-
    We are integrating SAP CRM with genesys mysap gplus adapter. We are struck in setting up a https connection between sap and gplus adapter.
    Can anyone here help me out in this like how to get the SSL Protocol, keystore, keystore password,truststore and truststore password.
    Information abt Adapters server certificate. Do we need to configure the adapter for the proxy also?
    Any additional comment will help. Thanks in advance!

    Hello Vinod,
    Please refer the following OSS notes 564085.
    Please reward if helpful.
    regards,
    Muralidhar Prasad.C

  • Set timeout for URL connection in java1.4

    hi
    I want to set timeout for URL connection in java 1.4..
    java 5.0 provides with a setTimeout(int ) method but how should it be done in 1.4 environment
    Thanks in advance
    sneha

    sun.net.client.defaultConnectTimeout (default: -1)
    sun.net.client.defaultReadTimeout (default: -1)
    See the [Networking Properties|http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html].

  • MI Client 7.1 - No credentials for HTTP connection

    Hi Everybody!
    I´ve been testing Mobile 7.1 . I installed SAP MI Client for Laptop, configured all connection parameters (server, port, client)  and when I try to synchronize with DOE, I get the error:
    m="Cannot determine reason for not authorized response from server --> com.sap.tc.mobile.exception.standard.SAPIllegalStateException: No credentials for HTTP connection
         at com.sap.tc.mobile.cfs.sync.synchronizer.http.HttpSynchronizer.createNewServiceConnection(HttpSynchronizer.java:1095)
         at com.sap.tc.mobile.cfs.sync.synchronizer.http.HttpSynchronizer.checkReasonForNotAuthorized(HttpSynchronizer.java:1277)
         at com.sap.tc.mobile.cfs.sync.synchronizer.http.HttpSynchronizer.readHttpResponse(HttpSynchronizer.java:1323)
         at com.sap.tc.mobile.cfs.sync.synchronizer.http.HttpSynchronizer.exchangeStatusWithServer(HttpSynchronizer.java:340)
         at com.sap.tc.mobile.cfs.sync.synchronizer.http.HttpSynchronizer.synchronize(HttpSynchronizer.java:591)
         at com.sap.tc.mobile.cfs.sync.SyncManagerImpl.synchronizeOnce(SyncManagerImpl.java:622)
         at com.sap.tc.mobile.cfs.sync.SyncManagerImpl.synchronize(SyncManagerImpl.java:452)
         at com.sap.tc.mobile.cfs.sync.spi.SyncManagerSPI.synchronize(SyncManagerSPI.java:694)
         at com.sap.tc.mobile.cfs.sync.spi.SyncManagerSPI.synchronizeStart(SyncManagerSPI.java:676)
         at com.sap.tc.mobile.cfs.sync.spi.impl.SyncCoordinator.startSync(SyncCoordinator.java:133)
         at com.sap.tc.mobile.mwd.laptop.container.SyncProgress$SyncThread.run(SyncProgress.java:580)
         at java.lang.Thread.run(Unknown Source)
    I´ve searched, but i haven´t got anything. I also created the Device on DOE Administrator and I configured the DOE following  SAP Help (http://help.sap.com/saphelp_nwmobile71/helpdata/en/45/17a790d8000064e10000000a1553f7/frameset.htm)
    I thought that the problem could be role, but i set all possible DOE roles to the user. I´m trying synchronize with the same password that I log in DOE.
    has anyone any idea?
    Thanks.
    Edited by: Rogério Tambellini on Nov 13, 2009 6:25 PM

    Hi,
    I´ve solved the problem following the link:
    Thanks for your attention.

  • I want to install CCPL ,but it is not taking PAC file proxy.So please suggest an alternate way to set proxy for this exe file..

    I want to install CCPL ,but it is not taking PAC file proxy.So please suggest an alternate way to set proxy for this exe file..

    That file might have moved to a different location on the server. I think you'll need to check with RefWorks support or your local IT department on why the install page links do not work.

  • OSB call to remote Web Service via https proxy and https CONNECT problem

    Hi
    I have a service that calls a web service on another server as a web service. This call is via https and the certificate validation raises no errors.
    I now want this call to go via a squid httpd proxy on port 3128 on some machine. So I would like to use HTTP CONNECT (RFC 2817) proxying,. But when I set up this as a proxy, I am getting "Certificate chain" error messages. The certifcate chains is no different now from when I called without the http proxy, so what am I doing wrong? Does OSB support HTTP CONNECT?
    -Johan

    The exeption we are getting is BEA-380000
    General runtime error: [Security:090477]Certificate chain received from XXX - 123.123.123.123 --> test.salesforce.com was not trusted causing SSL handshake failure.
    This is of course not relevant if the callout were using CONNECT. In the CONNECT scenario, OSB would not care about XXX's certificate.

  • How to set proxy for mail with Gmail account

    Hi, I'm using mail and set up a Gmail pop account. My mac is behind a proxy, say 192.168.0.1:808. I set the system http and https with the above address and can browse the internet with safari. But the mail app cannot receive or send any mails from the google pop/smtp server. Do you know how I can set the proxy for mail so that it can send and receive mail? Thank you very much!

    I solved this problem myself by using an app called proxifier. It's a tunneling tool I guess.

  • Load balance for HTTP Connection to ABAP System (Type H) RFC connection

    Experts,
    For proxy we are using HTTP Connection to ABAP System (Connection type H) RFC connection in PI to get connected to ECC. I only see the option to use Target host in the Target system settings than Load balance option. In general ABAP Connection (Connection type 3) has Load balancing status option in Target system settings.
    My requirement is I should use a logon group with the message server when PI connects to ECC. How can we achieve this? At the moment I can only use the Central Instance or any dialog server (App server) in RFC but not a logon group.
    Thanks in advance.
    Mahesh

    Hi Naga
    Could you check the link below?
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/47/c5935087b62d66e10000000a42189c/content.htm
    https://service.sap.com/sap/support/notes/1040325

  • Using a proxy for http requests and forward

    Hi. My company won't allow access to mail.yahoo.com and www.hotmail.com. However, I can get to my own web server on my Cable Modem at home. Can I use the proxy to accept the http connections and forward them to hotmail ...will this work? If not any other solutions?

    Yes, that would work if you configure it as a reverse proxy.
    IMHO proxy would be overhead for this. There's many freeware out this which is exactly designed for that, see
    http://freshmeat.net/search/?q=http+tunnel&section=projects&Go.x=0&Go.y=0

  • [iPhone] Programmatically set proxy (for both wifi and gprs/umts)

    Hi,
    i'm new to iphone developing. I need to write an application which programmatically setup a proxy for all the available connections (that said, gprs/umts and wifi). This is for a leading phone operator.
    Now, the standard Preferences.app (from what i understood) sets the proxy only for wifi connection. And the CFNetworkCopySystemProxySettings returns just that (and, moreover, i couldnt find any function to save proxy settings)
    So my questions are :
    1) is there any API i can use to read / write proxy settings for all the available connection types (network locations) ?
    2) if not, there's a way to write directly to /private/var/Preferences/SystemConfiguration/preferences.plist ? i doubt .....
    regards,
    valerio

    I did look at the Settings/Cellular to check the applications.  This is one of the steps I did with the person from Verizon who was an "iPhone Specialist".  And he didn't see anything unusual.  And I can honestly tell you they have very minimal number of apps on their phones.
    When I went to the Apple Store the first time with this problem, they had me update the phones iOS systems to see if this would correct the problem.  They were each running older versions but different versions.  One son had one update to do and the other had a couple of updates needed.  So, the problem started before they were updated and they weren't even on the same update.  And nothing changed after we did the updates.
    I didn't reboot the router and modem, because I'm not having any other issues with my phone, my husband's phone, our iPad, xbox, PS3, or laptops.  Would the wifi only affect their phones?

  • Steps to enable Web Proxy for https

    I have an S160 WSA and want to enable the Web service for http and https. I am using transparent mode with WCCP.
    This is part of the router configuration:
    ACL:
    access-list 110 permit tcp 192.168.80.0 0.0.7.255 any eq 80
    access-list 120 permit tcp 192.168.80.0 0.0.7.255 any eq 443
    ip wccp 97 redirect-list 110
    ip wccp 98 redirect-list 120
    interface FastEthernet0/0.380
    ip wccp 97 redirect in
    ip wccp 98 redirect in
    It is the same configuration for http and for https, but only http traffic is working. When I see the logs in the WSA, it looks like accepted connections for https.
    In Security Services -> Web Proxy it is enabled, when I put the port 443, I get an https error in the end user laptop; when I dont, it keeps trying and I get a timeout.
    I tried enabling https proxy but some sites (as gmail), wont work with self-generated certificates.
    Would you please, list me the steps to enable Proxy services for https.
    Thanks!!!
    Sergio L.

    Hi Sergio,
    When WSA is configured as transparent proxy, it also accepts explitcit connections. So in order to test HTTPS proxy, you can configure client browser to explicitly use WSA as proxy and see if it is working before testing in transparent mode.
    When WSA is used as HTTPS proxy, it uses its self-generated certificate to encrypt the connection between itself and the client browser. Since this certificate is not trusted by browser, it'll throw SSL certificate error when connecting via WSA. In order to get rid of this error, download the self-generated certificate from WSA and install it in your browser as a trusted certificate. That should resolve SSL issue with gmail also.
    Hope this helps.
    Thanks,
    Chetan

  • How to Create SSL certificate for HTTPS Connection in SAP PI

    Hi,
              I have Proxy to HTTPS scenario. I need to provide my SSL certificate( SAP PI SSL Certificate) to the vendor.
              How to generate SAP PI SSL certificate. I have already imported vendor certificate using STRUST T-code.
             I am not sure from where to generate SAP PI SSL certificate that need to be shared with vendor.
             Please help me on this issue.
    Thanks,
    Siva

    Hi,
    Check if it helps:
    http://help.sap.com/saphelp_nwpi711/helpdata/en/49/26af8339242583e10000000a421937/frameset.htm
    But as mentioned for the colleague above, you can create that on Visual Administrator Tool -> Keystore
    Regards,
    Caio Cagnani

  • Set password for database connection at runtime

    Hi there,
    is it possible to set the password and/or the user for the database connection at runtime.
    The use case is to read the values from a file and decrypt them, and the to establish the conenction. So that i don't habe to redeploy everything if there is a change.
    Thanks in advance.

    How exactly do i set these values for the datasource?
    Edited by: Alex on 15.02.2012 09:50
    €: JDeveloper 11.1.1.5.0
    The use case is, that there is a file with an encrypted password. This should be decrypted and then be used for the connection. So when this encrypted passowrd changes, i don't want to edit and deploay the app once again. Instead the new encrypted password should be decrypted via code an then be used.
    Edited by: Alex on 15.02.2012 10:00

  • ACE maintenance page for HTTPS connection (non offloaded mode)?

    Hello experts
    how do we configure a "redirected" maintenance page for HTTPS Serverfarm when the serverfarm is down/probefailed?
    lets say users are accessing https://xyz.com, and if the serverfarm is down, I want users to get redirected to https://abc.com or even http://abc.com
    (getting a certificate error or a https to http redirection error is acceptable)
    What i understand from TAC, since we are not terminating SSL on ACE, we have few restrcitions on using redirect. Thereafter, TAC hasnt been too helpful on this query.
    HTTPS connection is directly terminated on Server with certificate.  And we are using SSL Session Stickyness on ACE  (I know not the best thing to do..)
    Pls. assist.

    so do i assume there is no way to do this without using ACE for SSL termination?
    In our case, not using ACE for termiating SSL connections is to draw a line between Network and System administration, a business requirement.
    Thanks for your replies.

Maybe you are looking for

  • UPLOADING DATA USING BAPI_DOCUMENT_CREATE2

    Hi Friends, I am uploading data for CV01N using FM "BAPI_DOCUMENT_CREATE2", it is updating the data successfully, but for my requirement i need to change the value of RC29P-POSTP     Bom Item Category in the DOCUMENT STRUCTURE , it is default taking

  • Update to near cache value is not reflected in the other near cache

    Hi, I have a cluster of two weblogic servers running within them tangosol cache. I also have two seperate tangosol servers running on the same two servers. When I make an update on the tangosol cache on one of the weblogic application, unfortunately

  • PDF version of TRM for R12

    in 11i, we can find the pdf version of TRM from oracle.com, eg: http://docs.oracle.com/cd/A85683_01/acrobat/artrm.pdf but for R12, I can't find any, anyone have the URL? I don't like the style of etrm.oracle.com, really appreciate the PDF version.

  • Ie11 x64 on win7 crash ntdll.dll urlmon.dll

    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> - <System> <Provider Name="Application Error" /> <EventID Qualifiers="0">1000</EventID> <Level>2</Level> <Task>100</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated Syste

  • Event ID 139 error MUP

    We have following situation: On most of our Windows Server 2008 R2 SP1 systems we get an "Delayed Write File" event, about every 5 minutes. Event ID: 139 Source: Mup Description: {Delayed Write FIle} Windows was unable to save all data for the file \