}
public String[] listApplication(String targetName, String applicationsId) throws MBeanException {
String[] applicationNames;
checkDiameterInstalled();
DiameterService diaService = getDiameterService(targetName);
if (diaService == null) {
String msg = _strMgr.getString("DiameterSvcDoesNotExists", targetName);
throw new MBeanException(new ConfigException(msg));
}
PeerConfiguration peerConfig = diaService.getPeerConfiguration();
DiameterApplications diaApps = peerConfig.getDiameterApplicationsById(applicationsId);
Application[] apps = diaApps.getApplication();
applicationNames = new String[apps.length];
for (int i=0; i < apps.length; i++)
applicationNames[i] = apps[i].getVendorid();