I can see the security domain loaded in the JBoss in the XMLLoginConfig MBean's
displayAppConfig method and I am not using the jboss-app.xml file.
Here's how my code defined
import java.util.HashSet;
| import java.util.List;
| import java.util.Set;
|
| import javax.annotation.security.RolesAllowed;
| import javax.ejb.Remote;
| import javax.ejb.Stateless;
| import javax.persistence.EntityManager;
| import javax.persistence.PersistenceContext;
| import javax.persistence.Query;
|
| import org.jboss.annotation.security.SecurityDomain;
| import org.jboss.aspects.security.Unchecked;
| import org.jboss.logging.Logger;
| import org.vss.ejb3.eb.Role;
| import org.vss.ejb3.eb.User;
| import org.vss.ejb3.sb.SecurityManager;
| import org.vss.utils.HashUtils;
|
| @Stateless
| @Remote(SecurityManager.class)
| @SecurityDomain("corview-server")
| public class SecurityManagerBean implements SecurityManager {
| @Unchecked
| public User login(java.lang.String loginID,
| java.lang.String password) throws Exception {
| //....implementation
| }
|
| @RolesAllowed( { "admin" })
| public User getUser(int userID){
| //.....implementation
| }
| @RolesAllowed( { "admin", "manager" })
| public Collection<User> getAllUsers();
| // implementation
| }
|
| // other methods implementation etc.
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927143#3927143
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927143
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user