Microservice Introduction
The Microservice API consists of a combination of the Juneau Core, Server, and Client APIs and an embedded
Eclipse Jetty Servlet Container.
It includes all libraries needed to execute in a Java 1.7+ environment.
Features include:
-
An out-of-the-box zipped Eclipse project to get started quickly.
-
Packaged as a simple executable jar and configuration file.
-
All the power of the Juneau ecosystem for defining REST servlets and clients with the ability to
serialize and parse POJOs as HTML, JSON, XML, RDF, URL-Encoding, and others.
-
An extensible API that allows you to hook into various lifecycle events.
-
Simple-to-use APIs for accessing manifest file entries, command-line arguments, and external configuration
file properties.
-
Predefined REST resources for configuring microservice and accessing log files.
The juneau-microservice-server library consists of the following classes:
-
{@link oaj.microservice.Microservice}
- Defines basic lifecycle methods for microservices in general.
-
{@link oaj.microservice.RestMicroservice}
- Defines additional lifecycle methods for REST microservices.
Starts up an externally-configured Jetty server, registers servlets, and sets up
other features such as logging.