Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

Getting started with MicroProfile

 Bundle Logo

» Repository for the Getting Started with MicroProfile Course Bundle.

Specifications:

Technologies used for this series:

  • MicroProfile 3.3
  • OpenLiberty 20.0.0.5
  • Java 11
  • Maven 3.6
  • WAD (Watch and Deploy) from Adam Bien (setup)
  • JWTENIZR from Adam Bien

Start the example applications

Each subfolder contains a buildAndRun.sh (Linux/Mac) and buildAndRun.bat (Windows) file to build and start the application on your machine using Docker. You just need Java 11 and Maven installed and a running Docker daemon to start everything. Once the application is up- and running, you can visit http://localhost:9080 to access it (if any JAX-RS endpoint is available in the project).

Open Liberty configuration

All projects use the following base server.xml configuration:

<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">

    <featureManager>
        <feature>microProfile-3.3</feature>
    </featureManager>

    <mpMetrics authentication="false"/>

    <ssl id="defaultSSLConfig" keyStoreRef="defaultKeyStore" trustStoreRef="jdkTrustStore" />
    <keyStore id="jdkTrustStore" location="${java.home}/lib/security/cacerts" password="changeit" />

    <httpEndpoint id="defaultHttpEndpoint" httpPort="9080" httpsPort="9443"/>
</server>

The following ibm-web-ext.xml is used within the project to deploy the application to the root path /:

<web-ext
        xmlns="http://websphere.ibm.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd"
        version="1.0">
    <context-root uri="/"/>
</web-ext>