distributed clients and 1 server keepalive

Hello,

We have a system with 1 central server and several remote clients. I want to implement a licensing mechanism where for example 5 clients can connect to server (total).

The normal situation is fine when the client closes, I send a msg to the server to decrement the clientCount.

I don't know what to do when the client loses network connection or gets killed unexpectedly this way the server doesn't know the client is dead and is not decrementing the client count.

Server container we use is JBoss and we use stateless session Beans (EJBs). client has a login which increments clientCount on server while Jboss is running.

Any ideas on how to tackle this? (want to simulate a licensing)

Thanks in advance.

.

[768 byte] By [hurrica] at [2007-10-2 22:04:44]
# 1
Nevermind. I replied to myself. I implemented heartbeat functionality.
hurrica at 2007-7-14 1:21:16 > top of Java-index,Core,Core APIs...