I ve tried to deploy this simple session bean on JBoss 4.0.3 SP1 and 4.0.4 RC1 
in order to test JAAS with EJB3, but the server never recognize the 
@SecurityDomain annotation :


  | package jaastest;
  | 
  | import javax.annotation.security.RolesAllowed;
  | import javax.annotation.security.RolesReferenced;
  | import javax.ejb.Stateless;
  | 
  | import org.jboss.aspects.security.SecurityDomain;
  | import jaastest.Hello;
  | 
  | @SecurityDomain("other")
  | @Stateless
  | public class HelloBean implements Hello {
  |         public HelloBean() {
  | 
  |         }
  | 
  |         @RolesAllowed("guest")
  |         public String sayHello() {
  |                 return 
this.getClass().getAnnotation(SecurityDomain.class).toString();
  |         }
  | }
  | 

JBoss then just reply with this notification :


  | [JaccHelper] jaastest.HelloBean has no @SecurityDomain - skipping JACC 
configuration
  | 

I really don't see how to set up this securitydomain and didn't found any 
information about it after hours.

If anybody has an idea...

Regards,

Michael

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924611#3924611

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924611


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to