title: How to add nosql ( mongodb ) support for jsf 2.0 project?
body: <p>i am writing a web application with jsf 2.0 and using primefaces framework. 
  i want to use mongodb as my database and "getting started" guide for mongodb is just explaining the basic java usage. 
  I did make it work with "public static void main(String[] args)" but unfortunately not for my web application.</p>
  
  <p>it would help a lot if u could help with one of these;</p>
  
  <ul>
  <li>"the mongodb connection for jsf 2.0" in a pseudo code  or</li>
  <li>where should the connection be defined in the project? (xml,java)</li>
  <li>will i need any other framework to make it work ? (looked little bit to morphia)</li>
  </ul>
  
  <p>thanks in advance :)</p>