Posts filed under “java”

10 Minutes Setup for Spring, Jersey and MongoDB

A quick setup guide to wire up Jersey and MongoDB for a Spring MVC project. Most existing guides only do one of two or have a Maven POM that imports duplicate (but different versions) of libraries. Spring Data Jersey JSON Jersey Spring Mongo DB

GORM Relationship and Database Schema

Ever wonder what different database schemas GORM (Grail’s Object Relational Mapping) generates for different types of Grail domain object relations?

Grails with MongoDB

Steps on getting started with Grails (2.1.0) and MongoDB, as I was not successful following the steps from the plugin manual.

Manage Libraries with Maven

Maven is not for everyone. Its steep learning curve, imposing directory structure, and verbose configuration files are just some qualities that have driven away some developers. But most folks do agree there is one thing that Maven got it right — dependency management. Typically in a Java web application, we have a set of server [...]

Server Side Modernizr

Modernizr is a great JavaScript library for detecting browser capabilities, especially for HTML5 and CSS3 features. But doing everything on the client side on every request can get messy pretty quickly. Wouldn’t it be better if the decision on what actions to take, based on the browser capability, be off-loaded to the server side?