Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6344055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:33:52+00:00 2026-05-24T20:33:52+00:00

Spring Data – Document documentation gives and example of configuring a factory bean for

  • 0

Spring Data – Document documentation gives and example of configuring a factory bean for creating MongoDB connections using mongo:db-factory element.

<mongo:db-factory id="anotherMongoDbFactory"
              host="localhost"
              port="27017"
              dbname="database"
              username="joe"
              password="secret"/>

The problem is that the XSD for the mongo namespace does not declare a db-factory element. Is this a bug or am I looking at incorrect version of documentation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:33:53+00:00Added an answer on May 24, 2026 at 8:33 pm

    The mongo:db-factory element is available from Spring-Data 1.0 Milestone 3. The package can be downloaded from here and the documentation can be found at Spring-Data 1.0.0.M3 Documentation.

    To use it from Maven, just include the following dependency in the pom.xml file:

    <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-data-mongodb</artifactId>
        <version>1.0.0.M3</version>
    </dependency> 
    

    Probably you were using the 1.0.0.M2 version of the code (Spring-Data 1.0.0.M2 Documentation) where the db-factory was not yet available in the XSD or the online documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using: Spring 3.1.0.RELEASE, Spring Data MongoDB 1.0.0.RELEASE I have a document class defined like
Based on the Spring Data Document documentation , I have provided a custom implementation
Hi all patient developers using spring data graph. Since there is so less documentation
I am using Mongo in its simplest avatar possible (in conjunction with Spring Data).
We are using Hibernate 3.1 with Spring MVC 2.0. Our problem occurs when data
My application data access layer is built using Spring and EclipseLink and I am
I was using spring jdbc template to insert some data into the database and
Is it possible to fetch Page results when using Spring Data Graph (Neo4J) as
Is it possible to use the WrappingNeoServerBootstrapper with spring-data-neo4j? When using an embedded database
In my application I use 3rd party library ( Spring Data for MongoDB to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.