Spring Security offers many powerful security mechanisms, but is not suitable for the Java EE (EJB) environment. One problem is that Spring Security stores the SecurityContext in a ThreadLocal object, which is not suitable for clusters. Spring Security depends on services (such as AOP) on the Spring core, which are not available if the EJB container is managing the object. And Spring Security needs the Spring core to connect itself, which I would like to avoid, since Java EE already has dependency injection mechanisms.
Is there a security infrastructure specifically designed for Java EE? I would like to have ACLs or more flexible role mechanisms, for example.
java java-ee security spring-security ejb
deamon
source share