Skip to content

Commit

Permalink
Rework for easier usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cluther committed Mar 6, 2017
1 parent d08a233 commit 53a7fd1
Show file tree
Hide file tree
Showing 11 changed files with 253 additions and 195 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.classpath
bin
/bin/
/target/
*.iml
12 changes: 12 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# jmx-tester

A small Java application for testing JMX management.

## Usage

1. Verify that you have a recent Java Runtime Environment ([JRE]) installed.
2. Download the latest jmx-tester.jar.


[JRE]: https://java.com/
[jmx-tester.jar]:
40 changes: 40 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>cluther</groupId>
<artifactId>jmx-tester</artifactId>
<version>1.0.0</version>

<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<finalName>jmx-tester-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<classifier></classifier>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>cluther.test.jmx.Main</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</build>
</project>
7 changes: 7 additions & 0 deletions run
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
echo "jmx-tester listening on port 9991"
java \
-Dcom.sun.management.jmxremote.port=9991 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-jar target/jmx-tester-1.0.0.jar
8 changes: 0 additions & 8 deletions run.sh

This file was deleted.

141 changes: 0 additions & 141 deletions src/JMXTestObject.java

This file was deleted.

17 changes: 0 additions & 17 deletions src/JMXTestObjectMBean.java

This file was deleted.

27 changes: 0 additions & 27 deletions src/JMXTester.java

This file was deleted.

Loading

0 comments on commit 53a7fd1

Please sign in to comment.