Skip to content

Commit

Permalink
CHanges for AA
Browse files Browse the repository at this point in the history
  • Loading branch information
HariharanAnantharaman committed Jun 13, 2019
1 parent 0c9d512 commit 09338c5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public class MqttkafkaadapterApplication implements CommandLineRunner{
@Autowired
DefaultMqttCallBack cescMqttCallBack;


@Autowired
DefaultMqttCallBack aaMqttCallBack;

@Autowired
private Environment environment;

Expand All @@ -56,6 +60,10 @@ public void run(String... args) throws Exception {
cescMqttCallBack.connect();
logger.debug("Registed cescMqttCallBack callback");
}
else if((environment.getActiveProfiles())[0].contains("aa")){
aaMqttCallBack.connect();
logger.debug("Registed cescMqttCallBack callback");
}
else{
smartOfficeMqttCallBack.connect();
logger.debug("Registed smartoffice callback");
Expand Down

0 comments on commit 09338c5

Please sign in to comment.