Skip to content

Commit

Permalink
Move jolokia access config to the config directories, alongside log4j…
Browse files Browse the repository at this point in the history
…2.xml file. Point samples at top level dev and test config.
  • Loading branch information
rick-r3 committed Nov 18, 2016
1 parent dede118 commit cd98b55
Show file tree
Hide file tree
Showing 12 changed files with 66 additions and 243 deletions.
30 changes: 30 additions & 0 deletions config/dev/jolokia-access.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>

<restrict>
<http>
<method>post</method>
<method>get</method>
</http>

<commands>
<command>read</command>
<command>list</command>
</commands>

<!-- allow anyone to force a garbage collection -->
<allow>
<mbean>
<name>java.lang:type=Memory</name>
<operation>gc</operation>
</mbean>
</allow>

<!-- in case we ever end up using c3pio connection pooling, this example from the docs prevents the password being exported -->
<deny>
<mbean>
<name>com.mchange.v2.c3p0:type=PooledDataSource,*</name>
<attribute>properties</attribute>
</mbean>
</deny>

</restrict>
File renamed without changes.
4 changes: 2 additions & 2 deletions samples/attachment-demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ repositories {
sourceSets {
main {
resources {
srcDir "config/dev"
srcDir "../../config/dev"
}
}
test {
resources {
srcDir "config/test"
srcDir "../../config/test"
}
}
integrationTest {
Expand Down
59 changes: 0 additions & 59 deletions samples/attachment-demo/config/dev/log4j2.xml

This file was deleted.

20 changes: 0 additions & 20 deletions samples/attachment-demo/config/test/log4j2.xml

This file was deleted.

4 changes: 2 additions & 2 deletions samples/irs-demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ repositories {
sourceSets {
main {
resources {
srcDir "config/dev"
srcDir "../../config/dev"
}
}
test {
resources {
srcDir "config/test"
srcDir "../../config/test"
}
}
integrationTest {
Expand Down
59 changes: 0 additions & 59 deletions samples/irs-demo/config/dev/log4j2.xml

This file was deleted.

20 changes: 0 additions & 20 deletions samples/irs-demo/config/test/log4j2.xml

This file was deleted.

30 changes: 30 additions & 0 deletions samples/simm-valuation-demo/src/main/resources/jolokia-access.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>

<restrict>
<http>
<method>post</method>
<method>get</method>
</http>

<commands>
<command>read</command>
<command>list</command>
</commands>

<!-- allow anyone to force a garbage collection -->
<allow>
<mbean>
<name>java.lang:type=Memory</name>
<operation>gc</operation>
</mbean>
</allow>

<!-- in case we ever end up using c3pio connection pooling, this example from the docs prevents the password being exported -->
<deny>
<mbean>
<name>com.mchange.v2.c3p0:type=PooledDataSource,*</name>
<attribute>properties</attribute>
</mbean>
</deny>

</restrict>
4 changes: 2 additions & 2 deletions samples/trader-demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ repositories {
sourceSets {
main {
resources {
srcDir "config/dev"
srcDir "../../config/dev"
}
}
test {
resources {
srcDir "config/test"
srcDir "../../config/test"
}
}
integrationTest {
Expand Down
59 changes: 0 additions & 59 deletions samples/trader-demo/config/dev/log4j2.xml

This file was deleted.

20 changes: 0 additions & 20 deletions samples/trader-demo/config/test/log4j2.xml

This file was deleted.

0 comments on commit cd98b55

Please sign in to comment.