varsha
varsha

Reputation: 314

Set properties file in JBoss AS 7

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?

Upvotes: 6

Views: 9601

Answers (3)

elciospy
elciospy

Reputation: 256

After load the properties, u can see it at

localhost:8080 > Configuration > Environment Properties

Upvotes: 0

Simon Payne
Simon Payne

Reputation: 41

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

Upvotes: 4

davidryan
davidryan

Reputation: 2305

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

Upvotes: 9

Related Questions