Skip to Content

HANATrial account - java web application - connection timed out to external site

Hello there,

Have a Java servlet (supposed to act as a proxy), deployed on hanatrial cloud platform, making a apache httpclient connection to an external website to fetch data. And all attempts throw a connectionexception - connection timed out to the external site.

Question is, are outbound connections allowed to external sites from a hanatrial account or not or i'm clearly missing something.

Thanks in advance for the help.

Rajit

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 29 at 12:56 PM

    Dear Rajit,

    I think you must use the SCP Connectivity Service (Destinations) for this. I think the project https://github.com/SAP/cloud-connectivityproxy can be a good starting point for you.

    Best regards
    Gregor

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Gregor,

      That worked beautifully. Thank you very much. I guess the secret is in com.sap.core.connectivity.httpdestination.impl.HttpDestinationImpl and com.sap.core.connectivity.httpdestination.impl.HttpClientWrapper through which the connections are routed out than directly.

      Thanks for your help,

      Regards,

      Rajit