This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes MongoDB and the fly likes Embedded MongoDB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » MongoDB
Bookmark "Embedded MongoDB? " Watch "Embedded MongoDB? " New topic
Author

Embedded MongoDB?

Paul Hilliar
Greenhorn

Joined: Jul 11, 2003
Posts: 9
Can you run MongoDB embedded from Java? I would normally run H2 embedded and it is extremely useful for backing in-memory integration tests

Or does MongoDB need to be a separate process?

Cheers

Paul.
Kyle Banker
author
Greenhorn

Joined: Nov 22, 2011
Posts: 16
Hi Paul,

You have to run it as a separate process. MongoDB is written in C++, so it wouldn't be embeddable in Java anyway.

Kyle
 
wood burning stoves
 
subject: Embedded MongoDB?
 
Similar Threads
MongoDB vs Hadoop
* Welcome Kyle Banker
Is MongoDB easy to install?
J2MEoff the Phone
CruiseControl jetty server