Hi everybody,
We are using the SAP Hana Cloud Connector to access internal systems over SAP Hana Cloud.
There we created a proxy which forwards a HTTP Request to a Destination.
The current implementation gets the HTTPDestination with the following code:
DestinationFactory destinationFactory =(DestinationFactory)ctx.lookup(DestinationFactory.JNDI_NAME);
HttpDestination destination = (HttpDestination) destinationFactory.getDestination("byname");
Is there a way to get a destination not based on name (like above), but based on an URL (if not matching this url get an exception)
Then a general proxy servlet can be created with a target url as input parameter and then the dynamic destination lookup by url.
Any help is very welcome.
Best
Christopher
Christopher Schmitz
Mobile Technology Consultant | Mobile CoE | Global IT
M +49/151-62345319
F +49/6227-7853431
SAP Connect https://sap.emea.pgiconnect.com/D053431
mailto:christopher.schmitz@sap.com