Skip to content

AdeptJ/adeptj-runtime-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache License URL OSGi R8 Join the chat at https://gitter.im/AdeptJ/adeptj-runtime _AdeptJ Twitter

Launcher for AdeptJ Runtime

Minimal runnable jar is ~30MB in size with below-mentioned modules, starts in ~3000ms and low on resources

Steps to build and run:

  1. Make sure you have JDK 17(or newer) and Apache Maven 3.9.0(or newer) installed.
  2. Clone adeptj-parent and run mvn clean install to have the current parent version in local .m2
  3. Since adeptj-runtime needs adeptj-modules therefore clone adeptj-modules and build it locally by running mvn clean install in adeptj-modules base directory.
  4. clone adeptj-runtime and run mvn clean install.
  5. Now come to adeptj-runtime-launcher base directory and execute any of the maven profile script according to your requirements, e.g. ./build/minimal.sh
  6. Above step will create AdeptJ Runtime Launcher Uber jar with the /lib directory on the classpath.
  7. Now from adeptj-runtime-launcher directory itself execute this command ./bin/start.sh
  8. Start script will work on JDK 17 and so on.
  9. Go to AdeptJ OSGi WebConsole to configure the services.
  10. System will ask for username/password, provide the default ones [admin/admin]
  11. For examples on how to consume the modules please look into adeptj-modules-examples

Debug options:

Start AdeptJ Runtime with jpda option to run it in debug mode(port 8000) i.e ./bin/start.sh jpda

Start Parameters and VM arguments, most of these provided in start script.

  1. For specifying port: -Dadeptj.rt.port=8080
  2. Enable Async Logging: -Dasync.logging=true
  3. Felix Logging Level: -Dfelix.log.level=3
  4. For providing server mode: -Dadeptj.rt.mode=PROD or DEV, PROD is default

LICENSE

Copyright 2016, AdeptJ (http://www.adeptj.com)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.