wood burning stoves 2.0*
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 Spring in Action this week in the Spring 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: 10210
    
166

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: 10210
    
166

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jboss variable in xml - like ${my.ip}