View Full Version : SpringRoo and MongoDB
Marcelo Lima Gomes
Mar 15th, 2011, 09:33 PM
Any member has an example or tutorial on how to use SpringRoo and MongoDB together?
niklassaers
Apr 17th, 2011, 02:06 PM
You're not alone in looking forward to such integration :-)
chiwi
May 2nd, 2011, 09:15 AM
another interested user!
feridcelik
Jun 6th, 2011, 09:31 AM
and one more :)
a.rubalcaba
Jun 16th, 2011, 11:19 PM
++1
Def interested if there is an article on integrating Spring Roo with mongoDB
Oliver Gierke
Jun 18th, 2011, 01:30 AM
Just to give you a quick heads up on where we are regarding MongoDB (or rather general SpringData) and Roo integration. The feature is one of the big ones for Roo 1.2 and the Roo team is currently working on it supporting Spring Data JPA as a first step of a new layering feature in Roo. We're currently in close contact to workout the rough edges and already have in mind someone might want to switch from a JPA based model to a Mongo based one. Although I doubt MongoDB support will make it into the upcoming 1.2 release it's not a question of if but rather of when :).
Feel free to open up a ticket in the Roo JIRA to help the Roo team to collect votes to measure the interest in this feature.
ramesh12
Dec 20th, 2011, 03:52 PM
Just Spring Roo + Mongo Db working fine
commands
1)project --topLevelPackage com.tue3
2) mongo setup --databaseName pizzadb
3) open applicationContext-mongo.xml then change dbName={mongo.database} into dbname={mongo.name}
4) entiry mongo --class ~.domain.Person --testAutomatically
5)field string --fieldName name --notNull
6) repository mongo --interface ~.repository.PersonRepository --entity ~.domain.Person
7)web mvc setup
8) web mvc scaffold --class ~.domain.PersonController
9)perform package
10)mvn tomcat:run
Thanks
Ramesh
golfp-96
Jan 10th, 2013, 02:50 PM
http://www.ibm.com/developerworks/library/os-springroo7/index.html
Francisco Cuadra
Jan 30th, 2013, 01:25 PM
I am following that same tutorial, step by step, but I can't run the application on localhost, I get an error 500 when I do the change to mongo.name. Any idea what might be the problem??
golfp-96
Jan 31st, 2013, 04:38 AM
I am following that same tutorial, step by step, but I can't run the application on localhost, I get an error 500 when I do the change to mongo.name. Any idea what might be the problem??
Maybe Spring team already corrected this bug - I'm not sure about your environment and tools. You can see the correct variable name in the database.properties file. To complete the IBM tuturial mentioned above, I used STS 2.9.2, Ubuntu 12.04, MongoDB locally installed.
Francisco Cuadra
Jan 31st, 2013, 11:21 AM
Maybe Spring team already corrected this bug - I'm not sure about your environment and tools. You can see the correct variable name in the database.properties file. To complete the IBM tuturial mentioned above, I used STS 2.9.2, Ubuntu 12.04, MongoDB locally installed.
STS 3.1.0, Windows 7, Mongodb locally installed.
The dbproperties file says the variable is mongo.name.
golfp-96
Feb 1st, 2013, 08:20 AM
The problem may relate to the bug in STS. Roo projects doesn't work when created within STS. You should use 2.9.2 or 3.2.0M2, or create the project in cmd mode, without STS.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.