title: Implementing a chat server as a WebService
body: <p>I have a school project in which I have to implement a chat application, whose server will be a java web service.</p>
  
  <p>The problem is that I've always thought of a web service as a way of calling remote functions, and I have no idea how to keep a "session" active on the web service, nor how to keep track of all the people currently in chat, rooms etc.</p>