Skip to Content
0

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

Mar 29 at 10:53 AM

42

avatar image

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

10 |10000 characters needed characters left characters exceeded

Which environment? Neo or Cloud Foundry?

0

This was in Neo. Thanks.

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Gregor Wolf
Mar 29 at 12:56 PM
0

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

Show 1 Share
10 |10000 characters needed characters left 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

1