title: Configurable values to MDB annotations
body: <p>I'm trying to use <a href="http://www.jboss.org/community/docs/DOC-10032" rel="noreferrer">this method</a> for receiving mail in our EJB3 app. In short, that means creating an MDB with the following annotations:</p>
  
  <pre><code>@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "mailServer", propertyValue = "imap.company.com"),
      @ActivationConfigProperty(propertyName = "mailFolder", propertyValue = "INBOX"),
      @ActivationConfigProperty(propertyName = "storeProtocol", propertyValue = "imap"),
      @ActivationConfigProperty(propertyName = "debug", propertyValue = "false"),
      @ActivationConfigProperty(propertyName = "userName", propertyValue = "username"),
      @ActivationConfigProperty(propertyName = "password", propertyValue = "pass") })
  @ResourceAdapter("mail-ra.rar")
  @Name("mailMessageBean")
  public class MailMessageBean implements MailListener {
      public void onMessage(final Message msg) {
         ...snip...
      }
  }
  </code></pre>
  
  <p>I have this working, but the situation is less than ideal: The hostname, username and password are hardcoded. Short of using ant and build.properties to replace those values before compilation, I don't know how to externalize them. </p>
  
  <p>It would be ideal to use an MBean, but I have no idea how to get the values from the MBean to the MDB configuration.</p>
  
  <p>How should I do this?</p>