public void updateXBayaConfigurationServiceURLs() {
try {
if (this.getConfiguration().getAiravataAPI()!=null && this.getConfiguration().getAiravataAPI()!=null){
AiravataAPI airavataAPI = getConfiguration().getAiravataAPI();
AiravataManager airavataManager = airavataAPI.getAiravataManager();
// AiravataRegistry2 registry=this.getConfiguration().getJcrComponentRegistry().getRegistry();
URI eventingServiceURL = airavataManager.getEventingServiceURL();
if (eventingServiceURL!=null) {
this.getConfiguration().setBrokerURL(eventingServiceURL);
this.getMonitor()
.getConfiguration()
.setBrokerURL(eventingServiceURL);
}
URI messageBoxServiceURL = airavataManager.getMessageBoxServiceURL();
if (messageBoxServiceURL!=null) {
this.getConfiguration()
.setMessageBoxURL(messageBoxServiceURL);
this.getMonitor()
.getConfiguration()
.setMessageBoxURL(messageBoxServiceURL);
}
List<URI> interpreterServiceURLList = airavataManager.getWorkflowInterpreterServiceURLs();
if (interpreterServiceURLList.size()>0) {
this.getConfiguration()
.setWorkflowInterpreterURL(interpreterServiceURLList.get(0));
}
List<URI> gfacURLList = airavataManager.getGFaCURLs();
if (gfacURLList.size()>0) {
this.getConfiguration().setGFacURL(gfacURLList.get(0));
}
}
} catch (Exception e) {