[jboss-user] [Messaging, JMS & JBossMQ] - Override annotations using JBoss.xml

jej2003 do-not-reply at jboss.com
Thu Jun 26 12:02:34 EDT 2008

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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160922#4160922

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160922

More information about the jboss-user mailing list