This is a simple example shows how to interact with mongodb from java application.