0 Replies Latest reply on Aug 30, 2010 2:32 AM by Gunnar Bostrom

    Can I externalize user,password and destination?

    Gunnar Bostrom Newbie
      Hi,
      I'm using 1.4.3.GA Messaging to listen to a Tibco 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?
      Regards
      Gunnar