[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Can Jboss.xml be Externalised ?

jaikiran do-not-reply at jboss.com
Thu Nov 20 04:04:52 EST 2008


"shetty_ritesh" wrote : 
  | 
  | Example if i need to change the JNDI name <destination-jndi-name> in a MDB to a different value without changing the build ? 

Instead of moving the jboss.xml to some other location, you can use replaceable system properties to configure the destination-jndi-name.

Here's an example:

  | <jboss>
  | 
  |    <enterprise-beans>
  | 	      
  |       <message-driven>
  |          <ejb-name>MyFirstMDB</ejb-name>
  |          <destination-jndi-name>${myqueue.placeholder}</destination-jndi-name>
  |      </message-driven>
  |       
  |    </enterprise-beans>
  | 
  | 
  | </jboss>

Then you can pass the myqueue.placeholder as a java system property as follows

run.bat -Dmyqueue.placeholder=queue/testQueue

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

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



More information about the jboss-user mailing list