EJBContext does not provide such functionality. It is necessary to use vendor-specific functions
EJB container checks role permissions automatically
User role is stored in HttpSession. You should pass it to the EJB layer specially.
Use isCallerInRole() method of the appropriate session bean
Use isCallerInRole() method of the EJBContext class
Use getCallerPrincipal() method of the EJBContext class
|