Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Apllication config change  RSS feed

Chandraprabha Rajput
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I having a config file which i have deployed in jboss deploy directory.
How I can make this file value configurable at run time. or Does JBOSS have an MBean by which i can do ?

1.<?xml version="1.0" encoding="UTF-8"?>
2. <server>
3. <mbean code="org.jboss.naming.JNDIBindingServiceMgr" name="test=config">
4. <attribute name="BindingsConfig" serialDataType="jbxb">
5. <jndi:bindings xmlns:xs=""
6. xmlns:jndi="urn:jboss:jndi-binding-service:1.0"
7. xs:schemaLocation="urn:jboss:jndi-binding-service:1.0 resource:jndi-binding-service_1_0.xsd">
8. <jndi:binding name="test/hello">
9. <java:properties xmlns:java="urn:jboss:java-properties"
10. xmlns:xs=""
11. xs:schemaLocation="urn:jboss:java-properties resource:java-properties_1_0.xsd">
12 <java:property>
13 <java:key></java:key>
14 <java:value>2</java:value>
15 </java:property>
16 </java:properties>
17 </jndi:binding>
18 </jndi:bindings>
19 </attribute>
20 <depends>jboss:service=Naming</depends>
21 </mbean>
22 </server>


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!