src/main/java/org/efaps/ui/wicket/ConnectionRegistry.java
private void initKeepAlive()
    {
        if (!this.keepAlive) {
            this.keepAlive = true;
            final KeepAliveTask keepAliveTask = new KeepAliveTask(EFapsApplication.get().getApplicationKey());
            final Timer timer = new Timer(true);
            // every two minutes
            timer.scheduleAtFixedRate(keepAliveTask, 0 * 1000,
                            Configuration.getAttributeAsInteger(ConfigAttribute.WEBSOCKET_KASP) * 1000);
        }
    }
private void initKeepAlive()
    {
        if (!this.keepAlive) {
            this.keepAlive = true;
            final KeepAliveTask keepAliveTask = new KeepAliveTask(EFapsApplication.get().getApplicationKey());
            final Timer timer = new Timer(true);
            // every two minutes
            timer.scheduleAtFixedRate(keepAliveTask, 0 * 1000,
                            Configuration.getAttributeAsInteger(ConfigAttribute.WEBSOCKET_KASP) * 1000);
        }
    }
Init the KeepAlive mechanism.