Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apllication config change

 
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 ?
file:

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="http://www.w3.org/2001/XMLSchema-instance"
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="http://www.w3.org/2001/XMLSchema-instance"
11. xs:schemaLocation="urn:jboss:java-properties resource:java-properties_1_0.xsd">
12 <java:property>
13 <java:key>job.run.time</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>

Thanks,
Chandra


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic