Javadoc
The @DeclareRoles annotation defines the roles you want this EJB to use for security purposes. The example describes 3 roles, and also shows you how this would later map on a method that you want to secure.
@DeclareRoles({"Administrator", "Manager", "Employee"}) @Stateless public class ShoppingCartBean { @RolesAllowed({"Administrator", "Manager"}) public void clear() { } }
MainPage