-
Notifications
You must be signed in to change notification settings - Fork 56
The Java Middle Tier Overview
The role of a middle tier can be fairly minimal in a three-tier architecture, but, inevitably, there is still a lot going on. The middle tier in Samplestack's Java assumes that there are commodity solutions for building enterprise middle tier applications, and chose Spring Boot as a starting point for implementing the application.
Spring Boot met some of the requirements for Samplestack, in that we could stand up a REST server, use the MarkLogic Java Client API to interface with MarkLogic, and embed an LDAP server in order to demonstrate some non-trivial security scenario. Spring Boot provides an opinionated way to implement enterprise applications, and as such dictated many of the component choices in Samplestack.
Spring Boot applications run as Java executables. When they are web applications, they automatically include either Tomcat or Jetty as a Servlet-compliant web application server. Thus when you start up Samplestack, you're also starting up an embedded tomcat instance.
In fact, if you have all of the components of the Java Samplestack and the browser dev environment, all of the following are working together on your machine:
- Browser
- Express Web server
- Tomcat Web Server with Spring Boot App
- Apache DS LDAP Server
- MarkLogic (REST instance and core services)