WASdev/sample.mono-to-ms.pbw-monolith

Name: sample.mono-to-ms.pbw-monolith

Owner: WASdev

Description: The Plants By WebSphere sample application. Evolving a Monolithic Java EE application to use a Microservices architecture. #JavaEE7

Created: 2015-11-20 14:31:48.0

Updated: 2017-06-08 21:11:41.0

Pushed: 2016-01-06 10:30:11.0

Homepage:

Size: 6456

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Evolving a monolithic Java EE application to microservices

Examine what it means for a Java EE developer to evolve a monolithic application into a microservices architecture. The Plants By WebSphere sample is used as a representative monolithic application.

Background

Plants by WebSphere is an Internet storefront application that specializes in the sale of plants and gardening tools. Using the Plants by WebSphere store front, customers can open accounts, browse for items to purchase, view product details, and place orders.

This sample is designed using a typical Java EE web Model-View-Controller (MVC) pattern. The MVC pattern provides separation of concerns for persistent data, presentation of information, and the control logic that is used to tie them together. The sample has been updated to utilize the following technologies:

Installation

Full installation instructions are in the docs directory, but the following extract provides a quick start

The Plants By WebSphere sample uses an enhanced EAR to capture the deployment configuration information for the EAR. This information creates the resources required by the application to access the Derby database as well as a resource for a mail provider. The mail provider resource is a dummy mail provider that will attempt to send mail to a fictitous SMTP server.

The enhanced EAR data was configured using RAD and saved as part of the EAR file metadata in the pbw-ear sub-project. If you want to change the location of the Derby database, you will also need to update the resource configuration within the enhanced EAR metadata and rebuild the sample.

Applications may be installed in WebSphere by copying the EAR file to a well known location and can be uninstalled by removing the EAR file from that location. However, this is not turned on by default. Monitoring may be turned on by using the following command:

Once this is complete, the Plants by WebSphere application may be installed by copying it to the directory location specified in the Global deployment settings panel.*

Further reading

Starting the evolution to microservices (using the Plants By WebSphere sample)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.