Introduction
...
Code Block |
---|
Manifest-Version: 1.0 Created-By: Asseco DenmarkCeptor Implementation-Title: Ceptor JBOSS Integration Test Implementation-Version: 1.0 Implementation-Vendor-Id: dk.portalprotect Implementation-Vendor: Ceptor Dependencies: dk.portalprotect.jboss |
...
It contains a small EJB with 2 methods, both protected by the @RolesAllowed annotation, one allowing only anonymous users, and another allowing only identified users using the two special Ceptor roles that signify this.
The key to making this work, is either to specify the @org.jboss.ejb3.annotation.SecurityDomain("ceptor") annotation to point to the correct security domain, or to create a new file; WEB-INF/jboss-ejb3.xml with the following contents:
...