Table of Contents
This project is a little spring utility for remote glassfish server that allows developer to read logs file or any other remote file without having to ssh in the sever. The generated jar can be executed as jar and started as a service Java as Service
Here's why:
- Unable to determine why the server hung or find out the exceptions thrown
- Restart the glassfish server remotely in one click using any rest tool or browser for get
This section should list any major frameworks/libraries used to in our project.
- Java Spring
- Batch
- Linux
- Glassfish
Here's are instructions on setting up your project locally.
- Java 1.8 or higher
- Download the glassfish 4.1.2 and unzip it in a folder in your computer in my local it is in /Users/user/Documents/WebServers/glassfish4
- Import the project in your IDE (strongly recommend IntelliJ)
How to run it.
- Import or open the pom.xml as project
- Run the project
- mvn clean package (To generate the jar file)
- To read a specific file/log file (GET)
localhost:1990/server/processes/file?servername=test&app=glassfish&filename=/Users/user/Documents/mytest.sql
- To read restart the server (POST)
localhost:1990/server/processes/glassfish?servername=test
- To read restart the server (POST)
localhost:1990/server/processes/glassfish?servername=test
- To read a specific file/log file (GET)
localhost:1990/server/processes/file?servername=test&app=glassfish&filename=/Users/user/Documents/mytest.sql