File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Apllication config change Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Apllication config change" Watch "Apllication config change" New topic

Apllication config change

Chandraprabha Rajput
Ranch Hand

Joined: Apr 01, 2003
Posts: 37
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>


I agree. Here's the link:
subject: Apllication config change
It's not a secret anymore!