Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: SpringRoo and MongoDB

  1. #1
    Join Date
    Mar 2011
    Location
    Brazil, Goiânia
    Posts
    3

    Default SpringRoo and MongoDB

    Any member has an example or tutorial on how to use SpringRoo and MongoDB together?
    Marcelo Lima Gomes
    @marcelogomesgyn
    Coordenador – CoE Politec Global IT Services
    +5562 3219-3254
    marcelo.gomes@politec.com.br

  2. #2

    Default

    You're not alone in looking forward to such integration :-)

  3. #3
    Join Date
    Apr 2010
    Posts
    24

    Default

    another interested user!

  4. #4
    Join Date
    Jan 2011
    Posts
    2

    Default

    and one more

  5. #5

    Default

    ++1
    Def interested if there is an article on integrating Spring Roo with mongoDB

  6. #6
    Join Date
    Apr 2006
    Location
    Dresden, Germany
    Posts
    493

    Default

    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.

  7. #7
    Join Date
    Dec 2011
    Posts
    5

    Default SpringRoo and MongoDB integration commands Example

    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

  8. #8
    Join Date
    Dec 2012
    Posts
    12

  9. #9

    Default

    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??

  10. #10
    Join Date
    Dec 2012
    Posts
    12

    Default

    Quote Originally Posted by Francisco Cuadra View Post
    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •