public void updateXBayaConfigurationServiceURLs() {
try {
if (this.getConfiguration().getJcrComponentRegistry()!=null && this.getConfiguration().getJcrComponentRegistry().getRegistry()!=null){
AiravataRegistry registry=this.getConfiguration().getJcrComponentRegistry().getRegistry();
List<URI> eventingServiceURLList = registry.getEventingServiceURLList();
if (eventingServiceURLList.size()>0) {
this.getConfiguration()
.setBrokerURL(
eventingServiceURLList.get(0));
this.getMonitor()
.getConfiguration()
.setBrokerURL(
eventingServiceURLList.get(0));
}
List<URI> messageBoxServiceURLList = registry.getMessageBoxServiceURLList();
if (messageBoxServiceURLList.size()>0) {
this.getConfiguration()
.setMessageBoxURL(
messageBoxServiceURLList.get(0));
this.getMonitor()
.getConfiguration()
.setMessageBoxURL(
messageBoxServiceURLList.get(0));
}
List<URI> interpreterServiceURLList = registry.getInterpreterServiceURLList();
if (interpreterServiceURLList.size()>0) {
this.getConfiguration()
.setWorkflowInterpreterURL(interpreterServiceURLList.get(0));
}
List<String> gfacURLList = registry.getGFacDescriptorList();
if (gfacURLList.size()>0) {
try {
this.getConfiguration().setGFacURL(new URI(gfacURLList.get(0)));
} catch (URISyntaxException e) {
e.printStackTrace();