1 Reply Latest reply on Jul 21, 2005 2:27 PM by mcaughey

    Durable Subscription Authentication

    malmit

      I am trying to get durable scription working for a topic that I created so that I can have guaranteed message delivery. The problem is that I am stuck trying to authenticate using the <mdb-user> and <mdb-passwd> in jboss.xml. How do I setup the users/roles? I know that I somehow need to use JAAS for this. I'm using mysql for my datasource. Is there any documentation or instruction in Wiki that I am missing?

      Thanks.

        • 1. Re: Durable Subscription Authentication
          mcaughey

          Look at the login-config.xml in the conf directory. I set it up in a matter of minutes. I used tables in MySQL and it worked great.

           <!-- Security domain for JBossMQ -->
           <application-policy name = "jbossmq">
           <authentication>
           <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
           flag = "required">
           <module-option name = "unauthenticatedIdentity">guest</module-option>
           <module-option name = "dsJndiName">java:/MyDS</module-option>
           <module-option name = "principalsQuery">SELECT pwd as PASSWD FROM Player WHERE username=?</module-option>
           <module-option name = "rolesQuery">SELECT ROLEID, 'Roles' FROM Player_ROLES WHERE username=?</module-option>
           </login-module>
           </authentication>
           </application-policy>
          


          -Michael