11 Replies Latest reply on Oct 14, 2005 8:57 AM by russelldb

    AOPSecurity: I have failed to get expected results.

    russelldb

      Hello All,
      I am trying to apply AOP security to some POJOs in an application running under JBossAS 4.03. I followed the instructions http://docs.jboss.com/aop/1.3/aspect-framework/reference/en/html/running.html#jboss
      to enable JBoss AS for jdk5. This works as I can hot deploy a "HelloAOP" type application and see that it is deployed using the Aspect-manager MBean.

      I followed the instructions http://wiki.jboss.org/wiki/Wiki.jsp?page=AOPSecurity to set up J2EE style security for POJOs. When I deployed the application JBossAS logger adds the line

      10:38:45,657 INFO [org.jboss.aop.deployment.AspectDeployer] Deployed AOP: file:/C:/jboss-4.0.3RC2/s
      erver/ldsp/deploy/ldsp-aop.xml


      but there is no evidence of it under the aspect-manager mbean and when I cal methods on the "secured" pojo the aspects do not fire and the behaviour is that of an uninstrumented class.

      Has anyone got AOPSecurity working with POJOs ? Any tips you can give me or docs that I have missed ?

      Many thanks in advance

      Russell