title: ejb Security questions regarding Roles and Authentication
body: <p>I'd be very grateful is someone could assist me with the following questions:</p>
  
  <ol>
  <li>What are the differences between @RolesAllowed and @DeclareRoles annotations?</li>
  <li>I developed a login function to check username and password against information in the database. However, I'd like to ask how I can assign a role to an authenticated user to use with the above annotations. </li>
  </ol>