Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set properties file in JBoss AS 7

Tags:

jboss7.x

I have configured the properies file in JBoss AS 6 using properties-service.xml . here is my configuration for JBoss AS 6-->

<mbean code="org.jboss.varia.property.SystemPropertiesService" 
 name="jboss:type=Service,name=SystemProperties">
<attribute name="URLList">
  here is path for properties file.
</attribute>
</mbean>

Now i have installed the JBoss AS 7 server on my machine. How can I deploy or configure these properties AS 7?

like image 641
varsha Avatar asked Jan 06 '12 12:01

varsha


2 Answers

System Properties can be set in the standalone.xml, host.xml or domain.xml files depending on whether you are running a standalone instance, or configuring a member of a managed domain. Check out the following JBoss community documentation links:

Link: JBoss AS 7 Admin Guide - System Properties

Link: JBoss AS7 System Properties article

like image 94
ddri Avatar answered Nov 09 '22 22:11

ddri


You can also configure properties using the -P={properties file} syntax, which is very useful. Then in any of the standalone.xml files, you can use ${your.property} type syntax.

i.e. in /bin you can run:

standalone.bat -P=mysettings.properties
like image 32
Simon Payne Avatar answered Nov 09 '22 22:11

Simon Payne