We are developing a chat server (its quite similar, but not really a chat) but its not clear how to deploy it.

The service have to run 24/7 and should keep the client connections alive while they are connected.

We also run a cluster of j2ee app servers.

The question is: If we deploy the service as a stand-alone application we have to cover a bunch of j2ee services such as transactions and other facilities like logging, jdbc, etc. that we might implement or include as libs into the service distribution.

Any ideas out there?