Skip to content

Java-OS/Example-Modules

Repository files navigation

Sample JOS Modules

this repository contain simple jos modules based on :

  • Java pure
  • Tomcat
  • Jetty
  • ActiveMQ
  • Micronaut Framework
  • ...

Note : These modules tested with Java 21.

Generate jpkg archive

All jos modules should be archived with jpkg format . this archive is based on the same zip archive , with the different that has a additional file named manifest.yaml inside that .
this file help JOS to get information's of module. Please read maven-jpkg document

compile module :

cd 01-basic # choose module 
mvn clean compile package jpkg:archive
# jpkg should be generated : 
ls ./target/jos-module/01-basic-0.1.jpkg

Exclude jos modules

You must exclude any jar file contain this modules from your projects :

  • jos.api
  • ch.qos.logback.classic
  • ch.qos.logback.core
  • org.slf4j
  • logback.json.core
  • logback.json.classic

Manage Modules:

Open JOS web panel http://w.x.y.z:7080 and go to modules tab , click on + button and choose jpkg archive.

Manage Logs:

Click on log management button then config your log appender.
Note : currently jos support file and syslog appender.
Note : You can runtime change log level without restart module.

File Appender


now click on + to add new log appender base on your favorite configuration.

click on love stream button if you want to verify pattern or levels.

Syslog Appender

Go to syslog tab.

Click on + to add new syslog appender.

About

JOS Example modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors