title: How to make MDB Activation Spec contextual properties configurable?
body: <p>In our project, we are are using an MDB that listens for a message on a specific queue. It is defined as an annotation. </p>
  
  <p>Example: </p>
  
  <pre><code>@MessageDriven(activationConfig = {
  @ActivationConfigProperty(propertyName = "maxSessions", propertyValue = "20")})
  </code></pre>
  
  <p>. </p>
  
  <p>In order to change the value of the maxSessions, the code has to be compiled everytime. Even if i configure it in ejb-jar.xml instead of as an annotation , i need to compile the code and generate EAR file.</p>
  
  <p>Is there a way to make it user configurable(read from properties file) so that the recompilation of code is not required and by just changing the maxSession value to "30" and restarting the jboss, it should be working. </p>
  
  <p>Kindly help.</p>
  
  <p>Reference Code:</p>
  
  <pre><code>@MessageDriven(activationConfig = {
  @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
  @ActivationConfigProperty(propertyName = "destination", propertyValue = "ABCQueue"),
  @ActivationConfigProperty(propertyName = "maxSessions", propertyValue = "20"),    @ActivationConfigProperty(propertyName="maxMessagesPerSessions",propertyValue="15")})
  public class ABCMDB implements MessageListener
  {
     ----------- 
  }
  </code></pre>