- .createConsumer(AaiAdapterConfig.getExternalSystemAddr(), config, IExternalSystem.class);
- registerEmsServiceproxy.registerEMS(transactionId, fromAppId, authorization, emsId,
- emsDetail);
+ .createConsumer(MsbConfig.getExternalSystemAddr(), config, IExternalSystem.class);
+ try {
+ registerEmsServiceproxy.registerEMS(transactionId, fromAppId, authorization, emsId,
+ emsDetail);
+ } catch (Exception e) {
+ throw new ExtsysException("PUT EMS to A&AI failed.", e);
+ }
+ }
+
+ public static String queryEmsDetail(String emsId) throws ExtsysException {
+ try {
+ return externalSystemproxy.queryEMSDetail(transactionId, fromAppId, authorization, emsId);
+ } catch (Exception e) {
+ throw new ExtsysException("Query EMS detail from A&AI failed.", e);
+ }