7 Replies Latest reply on Mar 25, 2008 12:28 PM by Alessio Soldano

    @SecurityDomain changes from AS42 to AS5

    Alessio Soldano Master

      I was recently taking a look at some failing tests of JBossWS on JBoss AS 5.0 (http://jbws.dyndns.org:8180/hudson/job/Native-Core-AS-5.0.0/33/testReport/org.jboss.test.ws.jaxws.jbws1991/UsernameAuthTestCase/testWrongPasswordAuth/ for instance). The problem seems to me that we're using the org.jboss.annotation.security.SecurityDomain to declare the security domain to be used, while the AS5 ejb3 aop interceptor (should be Ejb3AuthenticationInterceptorv2, right?) looks for the new org.jboss.ejb3.annotation.SecurityDomain. So no authentication actually happens.
      Of course using the new annotation make the test pass on AS5, but our testsuite is supposed to work on different containers; so we were wondering if you have any interesting suggestion about this or since AS 5 is a major release we can't do nothing else than using different annotations for different containers. Are there real differences among the two annotations, or is it really a package refactoring only?

      Thank you