aravind kopparthi [http://community.jboss.org/people/aravindsk] created the 
discussion

"Re: security in ejb3.1 using jboss 6.0 CR1"

To view the discussion, visit: http://community.jboss.org/message/576044#576044

--------------------------------------------------------------
when i  check the Caller and isCallerinRole in side a EJB method that is 
annoated with @RolesAllowed("businessowner") which means EJB sessionContext has 
the security info but not being verified by @RolesAllowed?

@RolesAllowed("businessowner")
Public List getMembers(){

 
 // Create the client
 System.out.println("Caller : " + sctx.getCallerPrincipal().getName());
 System.out.println("Caller is in Role : " + 
sctx.isCallerInRole(Roles.BUSINESS));
}

it prints out this 
22:43:15,656 INFO  [STDOUT] Caller : admin
 
22:43:15,687 INFO  [STDOUT] Caller is in Role : false
22:43:15,656 INFO  [STDOUT] Caller : admin

22:43:15,687 INFO  [STDOUT] Caller is in Role : false
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/576044#576044]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to