2 Replies Latest reply on Feb 15, 2010 8:05 AM by Wolfgang Knauf

    Explicit LoginModule dependencies?

    Geoffrey Ulman Newbie

      Is it possible to mark a JBoss LoginModule as being dependent on a Datasource? (so that the Datasource loads before anyone is allowed to authenticate using the LoginModule)


      It seems like this would be necessary to use the provided org.jboss.security.auth.spi.DatabaseServerLoginModule. If not, what happens if something attempts to authenticate before the Datasource is bound to a JNDI name?


      I know that mbeans can have an explicit dependencies, including on particular datasources. Here's an example snippit:


      <mbean code="org.jboss.messaging.core.jmx.JDBCPersistenceManagerService"

            <!-- other stuff -->



      I was hoping that there would be something similar for LoginModules.



      P.S. I apologize for the somewhat similar thread in the Datasources forum (http://community.jboss.org/message/525966#525966). The question seems to apply equally to both areas.