views:

94

answers:

3

Hey folks,

It's already 18 hours that i'm playing with Spring framework. It's beautiful, really amazing. As far as i can see spring knows how to work rdbms databases .

Can anyone tell me about experience of spring + NoSQL ( cassandra , couchdb\mongodb, redis or even HBase ) ?

thanks

A: 

I'm assuming you mean similar to JDBCTemplate. If so, there's no template based functionality that supports the NoSQL crowd as a whole. You'd either need to build your own on top of a client for that NoSQL client. Cassandra, for example has a number of clients written by various people:

http://wiki.apache.org/cassandra/ClientOptions

You might get lucky with specific NoSQL databases, it appears someone is working on a Cassandra4Spring framework:

http://code.google.com/p/workingonit/wiki/Cassandra4Spring

Jon
actually, no. Not JDBC template. I am wondering what would others choose for data-driven project and why. But thanks for cassandra4spring link
themoah
But Spring's only method of RDBM's interface is Spring JDBC, i.e. JDBCTemplate? If you didn't mean this then what did you mean?
Jon
+1  A: 

For Cassandra you can use Hector. It has a usable spring integration (implemented by me). In the test resources there is an example xml - you just map 3 beans, and you have your HectorTemplate injecected and ready to work with.

For everything else - you said spring is beautiful, and it indeed is, because you can use almost any API with it, without the API specifically adhering to or depending on spring.

Bozho
great ! thank you
themoah