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