title: Java EE 6 Security Model: How to add or delete user
body: <p>I read most of the documentation, I only see the use of <code>@RolesAllowed</code> or <code>@DeclareRoles</code>, how can I add user or delete user. I have a table of users with username and password in my database, how can I make my web app to authenticate those user? How can I map these user (principal) to a particular roles. Samples code would be greatly appreciated. Thank you very much</p>