Here is code implementing some basic functionalities of an app server written in Java.