1 Reply Latest reply on Nov 10, 2005 1:02 AM by trofimov

    Security Proxy in JBoss 4.0.1

    adrianob

      Hello,

      I'm trying to deploy a test case with security proxy, but JBoss is'nt calling it.
      The application is based in EJB3 with annotations, there is'nt a ejb-jar.xml descriptor, just the jboss.xml file that sets up the 'try' to security proxy.

      <?xml version="1.0" encoding="utf-8"?>
      <jboss>
       <security-domain>java:/jaas/BonatAuth</security-domain>
       <enterprise-beans>
       <session>
       <ejb-name>NomesManager</ejb-name>
       <security-proxy>com.sistema.control.SecurityManager</security-proxy>
       </session>
       </enterprise-beans>
      </jboss>
      


      First, I would see the application work independently to be with/without descriptors :)
      After I would not use descriptor to set up the security proxy, there is a way to do this with annotations? I searched a way but I can't find it, maybe using interceptor annotation?

      The BonatAuth security domain is a UsersRolesLoginModule, it is working perfectly, the SecurityManager class implements the SecurityProxy interface.

      ...
      @Stateless
      public class NomesManagerBean implements NomesManager {
       @Inject
       private EntityManager entityManager;
      ...
      


      I have missed something? Any reply is welcome :)

      More info:
      Release ID: JBoss [Zion] 4.0.1 (build: CVSTag=JBoss_ 4_0_1 date=200412230944)
      JBoss EJB 3 Preview 4

      Thanks in advance.
      -Adriano Bonat