cancel
Showing results for 
Search instead for 
Did you mean: 

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

03-29-2018 12:53 PM
1146 views 4 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

gregorw
SAP Mentor
SAP Mentor
0 Likes

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

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

Answers (0)