6 Replies Latest reply on May 23, 2012 2:19 PM by jbertram Branched to a new discussion.

    AS7.1 Configurable username and password for MDB

    ned233

      Distribution:  7.1.0 Final

       

      My organization has pretty strict regulations regarding storing clear-text passwords.  After securing a queue, I had to add the following annotations to my MDB:

       

            @ActivationConfigProperty(propertyName="userName", propertyValue="myUser"),

            @ActivationConfigProperty(propertyName="password", propertyValue="myClearTextPassword")

       

      Since we use different passwords per deployment environment (DEV, TEST, PROD), this approach is not feasible.  I was following this discussion on stackoverflow, to extract those values out from the compiled code:  http://stackoverflow.com/questions/308188/configurable-values-to-mdb-annotations

       

      However, it appears that JBoss is not substituting the System property values that I set for the username & password.  Is there some other way to abstract these values out from the annotations, or to specify their values at runtime?