0 Replies Latest reply on Jul 19, 2007 6:24 AM by Alex Grönholm

    JAAS configuration for remote EJB client

    Alex Grönholm Novice

      I have an EJB client app and an EAR on the server, and the following snippet added to the server's login-config.xml:

       <application-policy name = "myapp">
       <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
       flag = "required">
       <module-option name = "dsJndiName">java:/MyappDS</module-option>
       <module-option name = "principalsQuery">SELECT password FROM employee WHERE id=?</module-option>
       <module-option name = "rolesQuery">SELECT accessLevel, 'Roles' FROM employee WHERE id=?</module-option>

      This works, but I don't like having to modify the server's configuration just to deploy an application. How can I accomplish the same thing with EAR level configuration? All the FAQs and examples only seem to cater for web apps. I don't know what to do.
      I'm using JBoss 4.2.1GA.