This is the installation guide for setting up the order fulfillment processor application that acts as the case study for Pluralsight's Introduction to Integration with Apache Camel. The case study is a custom implementation of a mediator. You will be able to follow along with the course using this case study project as the base for demonstrations. The case study was developed using the following:
.. Implemented on Windows 8.1, 64-bit .. Eclipse .. JDK 1.7.0_45 .. Maven 3 .. Spring 4 .. PostgreSQL 9.3 .. Apache Tomcat 7.0.54 .. Apache ActiveMQ 5.10.0 .. Apache Camel 2.13.2 .. Hawt.io 1.4.14
Below are the instructions on a per-component basis. The installation assumes Windows, so you will need to follow the instructions that pertain to your OS if you are not using Windows.
The case study depends on Java. The course makes use of Java SDK 1.7.0_45. The SDK can be downloaded here:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Following installation, you will need to configure your environment variables based on your OS
My preference for an integrated development environment is Eclipse. I am currently developing using Eclipse Kepler. You can find the download for Eclipse here:
http://www.eclipse.org/kepler/
I use Apache Maven for build and dependency management. You can download Maven here:
http://maven.apache.org/download.cgi
After installation, you will need to configure your environment variables based on your OS. You can also skip installation of Maven and use the Eclipse Maven plug-in if you are developing with Eclipse as your IDE.
I chose to use PostgreSQL for the project's database. PostgreSQL is a free, open-source database. PostgreSQL can be downloaded from the following URL:
http://www.postgresql.org/download/windows/
The installation should include PGAdmin III, which is a graphical editor for PostgreSQL.
The scripts to create the database for the case study project can be found in the project directory:
order-fulfillment-processor\src\main\sql\postgresql\ddl
Scripts include:
.. create-orders-db.sql = Creates the login, database and schema for the project. .. create-orders.sql = Drops and re-creates the database table schema ..* drop-orders-db.sql = Drops the orders database
The script to load initial data can be found in the project directory:
order-fulfillment-processor\src\main\sql\postgresql\dml\load-orders.sql
To initially create the database:
To re-load the database:
I used Apache Tomcat 7.0.54 as a server runtime in Eclipse. Below are instructions for adding the runtime in Eclipse:
I used Apache ActiveMQ 5.10.0 for messaging. Below are instructions for installation:
I used Hawt.io version 1.4.14. Below are instructions for installation:
Below are instructions for getting the Order Fulfillment Processor running in Eclipse:
If you want to run order processing, click Orders -> Process Orders
If you want to reset the orders back to new status, click Orders -> Reset Orders
If you have any questions, please feel free to contact me:
Michael Hoffman mike@michaelhoffmaninc.com @mhi_inc