1 package org.onap.boot.example.demo;
3 import org.springframework.context.ApplicationListener;
4 import org.springframework.context.event.ContextRefreshedEvent;
5 import org.springframework.stereotype.Component;
6 import org.onap.msb.sdk.httpclient.msb.MSBServiceClient;
7 import org.onap.boot.example.demo.msb.MsbHelper;
10 public class ContextRefreshedListener implements ApplicationListener<ContextRefreshedEvent>{
13 public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
14 System.out.println("Registring Service...");
15 String MSB_IP="127.0.0.1";
18 MSBServiceClient msbClient = new MSBServiceClient(MSB_IP, MSB_Port);
19 MsbHelper helper = new MsbHelper(msbClient);
23 } catch (Exception e) {