1 Reply Latest reply on Jun 26, 2008 12:21 PM by jej2003

    Override annotations using JBoss.xml

    jej2003

      I am attempting to override the annotations in a message driven bean using a JBoss.xml file.
      My environment is Windows running JBoss 4.2.2GA

      The relevant section of my MDB is as follows:

      @MessageDriven(activationConfig={
      @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Topic"),
      @ActivationConfigProperty(propertyName="destination", propertyValue="topic/securedTopic")
      }
      ...
      


      my jboss.xml looks like:
      <jboss>
      <enterprise-beans>
      <message-driven>
      <ejb-name>TestEJB</ejb-name>
      <destination>topic/otherTopic</destination>
      </message-driven>
      </enterprise-beans>
      </jboss>
      


      but when this is deployed it always connections to securedTopic not otherTopic. Any ideas as to what could be causing this?