Tuesday, May 19, 2015

Separate Configuration for Play Framework / Play2 production, testing and development environment

Working on Play Framework configuration is easy. In this article, I'll walk you through simple implementation where you are able to create a generic application.conf and a dedicated application.conf for each environment.


Objective: To be able to easily manage your Play2 application configuration separately for production, testing and development.

Solution: Override GlobalSettings onLoadConfig to point to a commong configuration and a fallback configuration specific for your current environment. Your code should look like below.

Thursday, May 7, 2015

Embedded Jetty in Spring MVC, IoC/DI


I was trying to configure embedded jetty in a 
spring application that implements MVC(Model View Controller). I want to utilize single spring applicationContext xml file for IoC(Inversion of Control) and DI(Dependency Injection) on dispatcher servlets.

The goal is to be able to use or reference beans configured/located on already been loaded spring application context. Read and understand my resolution below.