SmppServerConfiguration configuration = new SmppServerConfiguration();
configuration.setPort(2776);
configuration.setMaxConnectionSize(10);
configuration.setNonBlockingSocketsEnabled(false);
SmppServer smppServer = new DefaultSmppServer(configuration, new DefaultSmppServerHandler());
logger.info("About to start SMPP server");
smppServer.start();
logger.info("SMPP server started");
System.out.println("Press any key to stop server");
System.in.read();
logger.info("SMPP server stopping");
smppServer.stop();
logger.info("SMPP server stopped");
}