// FIXME - this check is a work-around for AS7-3658
if (!hornetQServer.getValue().getConfiguration().isBackup()) {
hornetQServer.getValue().getRemotingService().allowInvmSecurityOverride(new HornetQPrincipal(HornetQDefaultCredentials.getUsername(), HornetQDefaultCredentials.getPassword()));
} else {
hornetQServer.getValue().registerActivateCallback(new ActivateCallback() {
public void preActivate() {
}
public void activated() {
hornetQServer.getValue().getRemotingService().allowInvmSecurityOverride(new HornetQPrincipal(HornetQDefaultCredentials.getUsername(), HornetQDefaultCredentials.getPassword()));