I have been developing regularly using Restlet (via Prudence for JavaScript) and MongoDB for a while, and strongly recommend it.
Check out the MongoVision project as an example. The server-side code is ridiculously simple: http://code.google.com/p/mongo-vision/ (For web development, the combination of JavaScript on the server, client and database is a magic bullet! Note that Prudence can also use MongoDB as its cache backend.) MongoDB also has a RESTful layer, which means you would be able to access it via Restlet's ClientResource. Though, I'd say you're better off using the standard Java driver. (Even though it, too, could be better.) Otherwise, there are no problems storing the Mongo instance in the Context. That's its natural place. (I sometimes store it in the Component's context if I need it shared between a few Restlet Applications.) -Tal On 01/20/2011 08:37 PM, darrylwest wrote: > hi all, > > I am interested in your thoughts on implementing mongodb inside a standard > jse restlet app. My current implementation uses a context attribute to > store the reference to the mongo connection pool but was interested in any > other ideas. > > my implementation uses restlets 2.0.4 and is slated to replace our current > tomcat/mysql implementation that supports about 2000 concurrent users (500 > tx/second) on a small cluster. my initial mongo tests have been great, and > the restlets project looks promising, but I would feel much more comfortable > with feedback from larger implementations. > > thanks, > > darryl... ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2699516