User Tools

Site Tools


dropwizard_for_rpg

This is an old revision of the document!


Dropwizard for RPG

For some time now there is the trend for packaging REST services into a fat executable ready to deploy anywhere without much or any configuration. Dropwizard is such a project. It takes best of breed stuff to create an easy to use platform for developing REST services.

Developing REST services on the IBM i server has been very hard and/or complicated. Creating such a platform would ease the integration of the IBM i platform into the rest of the IT application infrastructure.

Components

HTTP Server

A HTTP Server needs to be embedded.

One of these http servers need to be ported to the IBM i platform and compiled to an ILE module.

Database

Nothing to do here because every job on the IBM i has a native database connection.

Configuration

Configuration should be dead simple.

IFS

Normally a stream file in the IFS would be used for storing the configuration of the server/service. But most IBM i people are not comfortable with using the IFS because they haven't used it on a regular basis (or not at all).

Data Area

Another option would be a data area (as long as the configuration is not too big/complex).

Database File

Simple database file CONFIG with two fields (key, value).

Special MiWorkplace Plugin for Dropwizard for editing configuration values. Form Editor.

Templating

For simple REST services a template engine would easy the development of REST services a lot.

  • RPG Next Gen Template Engine (not fully developed and not released yet)
dropwizard_for_rpg.1406789512.txt.gz · Last modified: 2014/07/31 06:51 by mihael