2 Replies Latest reply on Aug 27, 2010 2:01 AM by gunnarbos

    Can I externalize user,password and destination?

    gunnarbos

      Hi,

      I'm using 1.4.3.GA Messaging to listen to a JMS queue.

      It works fine but I need to externalize user, password and destination from my application.

       

      I use declarative style like this

      @MessageDriven(activationConfig = {

              @ActivationConfigProperty(propertyName = "destination", propertyValue = "DEST"),
              @ActivationConfigProperty(propertyName = "user", propertyValue = "USER"),
              @ActivationConfigProperty(propertyName = "password", propertyValue = "PWD"),
      .....
      }

      public class MDB implements MessageListener {

       

      How can we put the values in an external file so we don't need to make code changes for different environments?

       

      Regard

      Gunnar