title: Authentication for Hospital Management system
body: <p>I am implementing a Java EE based Hospital Management System that has a web service and two clients are to be connected to it, a Java Swing App and a JSP-based web project. The web service is to be implemented using Stateless EJBs. </p>
  
  <p>Please suggest a way of implementing authentication and login for both clients (Users are taken from database-DB2)</p>
  
  <p>NB: This has to be submitted as a project so server(Websphere) based authentication should be avoided as much as possible. Could not find any resource corresponding to this scenario..</p>