Skip to content

cvignola/java-ms-64

Repository files navigation

Microservice

Bluemix Microservice Starter in Java

Platform

Table of Contents

Summary

The Bluemix Microservice Starter in Java provides a starting point for creating Java microservice applications running on WebSphere Liberty.

To deploy this application to Bluemix using a toolchain click the Create Toolchain button. Create Toolchain

Requirements

Configuration

The application is configured to provide JAX-RS REST capabilities, JNDI, JSON parsing and Contexts and Dependency Injection (CDI).

These capabilities are provided through dependencies in the pom.xml file and Liberty features enabled in the server config file found in src/main/liberty/config/server.xml.

Project contents

The microservice application has a health endpoint which is accessible at <host>:<port>/<contextRoot>/health. The ports and context root are set in the pom.xml file.

The project contains Bluemix specific files that are used to deploy the application as part of a Bluemix DevOps flow. The .bluemix directory contains files used to define the Bluemix toolchain and pipeline for your application. The manifest.yml file specifies the name of your application in Bluemix, the timeout value during deployment and which services to bind to.

This microservice application is configured to connect to the following services :

Credentials are either taken from the VCAP_SERVICES environment variable that Bluemix provides or from environment variables passed in by JNDI (see the server config file src/main/liberty/config/server.xml).

Run

To build and run the application:

  1. mvn install
  2. mvn liberty:run-server

To run the application in Docker use the Docker file called Dockerfile. If you do not want to install Maven locally you can use Dockerfile-tools to build a container with Maven installed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published