wood burning stoves*
The moose likes JBoss/WildFly and the fly likes jboss variable in xml - like ${my.ip} Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jboss variable in xml - like ${my.ip}" Watch "jboss variable in xml - like ${my.ip}" New topic
Author

jboss variable in xml - like ${my.ip}

avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
Hey,

i want to have variable in jboss xml files.
i want to have variable like ${port} that i can configure in some file or in the run script and jboss will replace them with the given value.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Originally posted by avihai marchiano:
and jboss will replace them with the given value.


As far as i know, JBoss will not replace these user defined properties, except for JBoss specific properties which are mentioned here


[My Blog] [JavaRanch Journal]
avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
Thank you.
Disappointing to know this.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Originally posted by Jaikiran Pai:

As far as i know, JBoss will not replace these user defined properties


Looks like this is possible, see this
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jboss variable in xml - like ${my.ip}
 
Similar Threads
Generate the xml descriptors for CMP Deployment
Session Bean Reading an XML File
authentication in jboss
JMS ConnectionFactory configurations in JBoss AS 5.1.0
How to remove jboss default home ?