title: Externalizing MDB configurations in Jboss 7.1.1
body: <p>I'm using Jboss as 7.1.1 and I have my EJB MDB annotation such as below:</p>
  
  <pre><code>@MessageDriven(activationConfig = {
      @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
      @ActivationConfigProperty(propertyName = "destination", propertyValue = "XXX.IN"),
      @ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "false"),
      @ActivationConfigProperty(propertyName = "hostName", propertyValue = "XXX.com"),
      @ActivationConfigProperty(propertyName = "port", propertyValue = "3434"),
      @ActivationConfigProperty(propertyName = "queueManager", propertyValue = "A01"),
      @ActivationConfigProperty(propertyName = "channel", propertyValue = "CLIENT.TO") }, name = "MQMDB")
  public class MyMessageListener implements MessageListener {
  ...
  </code></pre>
  
  <p>}</p>
  
  <p>I know it can be moved to ejb-jar.xml but can I move this configuration out of the code and into jboss standalone.xml file?</p>
  
  <p>The reason is we will be having seperate standalone.xml for each of our environments like dev, test and live and therefore would prefer to move all the configurations out of the application deployment.</p>
  
  <p>Thanks!</p>