Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

API to access all destinations on app level

$
0
0

Hello experts,

 

I’m creating a Java application in HCP and I’m trying to access all destinations that are accessible.

 

The following snippet does the job on account-level

 

TenantContext tenantCtx = (TenantContext) ctx.lookup("java:comp/env/TenantContext");

String accountId = tenantCtx.getTenant().getAccount().getId();

ConnectivityConfiguration conf = (ConnectivityConfiguration) ctx.lookup("java:comp/env/connectivityConfiguration");

Map<String, DestinationConfiguration> destinations = conf.getConfigurations(accountId);

 

 

But I haven’t found similar API to retrieve the destinations configured on application-level.

E.g. DestinationFactory doesn’t have similar method

 

I’ve checked the docu here

 

Does anybody know the trick or a workaround?

 

Thanks!

Carlos


Viewing all articles
Browse latest Browse all 3285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>