SCSessionService sessionSrv = null;
try {
sc.setMaxConnections(20); // can be set before attach, default 100 Connections
sc.setKeepAliveIntervalSeconds(10); // can be set before attach, default 0 -> inactive
sc.attach(); // attaching client to SC , communication starts
String serviceName = "session-1";
sessionSrv = sc.newSessionService(serviceName); // name of the service to use
sessionSrv.setEchoIntervalSeconds(10); // can be set before create session
sessionSrv.setEchoTimeoutSeconds(2); // can be set before create session