SCSessionService service = 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";
service = sc.newSessionService(serviceName); // name of the service to use
service.setEchoIntervalSeconds(10); // can be set before create session
service.setEchoTimeoutSeconds(2); // can be set before create session