This is the from sample application I found on https://github.com/SpringSource/spring-security-oauth.git
I just did following on top of the samples
- Moved from tomcat to jetty
- Changed storge and in memory implementations to jdbc ones
- Separated oauth resource and authentication servers