/jongo-play2-spike

Tests about Jongo and Play 2 framework integration

Primary LanguageJava

Jongo Play 2.0 Spikes

This project aims to test how jongo can be used with Play 2

It has been created subsequent these 2 questions :

bguerout/jongo#34

https://groups.google.com/forum/?hl=fr&fromgroups#!topic/jongo-user/ydYeEaZuU2M

First spike : Share a Mongo and Jongo instance across an application :

A JongoPlugin has been created and declared into 'conf/play.plugins' file.

This plugin can be used accros the application using the following snippet :

 JongoPlugin plugin = JongoPlugin.getJongoPlugin();
 Jongo jongo = plugin.getJongo("myDatabase");

Second spike : Convert this plugin into a Module

Preview spike does not allow user to reuse JongoPlugin (code and conf files must be copy/paste)

A Play module should be created and deployed to achieve that.

In progress...