this.serverSession = serverSession;
}
public void run() {
try {
BindRequest bindRequest = serverSession.waitForBind(1000);
logger.info("Accepting bind for session {}", serverSession.getSessionId());
try {
bindRequest.accept("sys");
} catch (PDUStringException e) {
logger.error("Invalid system id", e);
bindRequest.reject(SMPPConstant.STAT_ESME_RSYSERR);
}
} catch (IllegalStateException e) {
logger.error("System error", e);
} catch (TimeoutException e) {