Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Embedded MongoDB?

 
Paul Hilliar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic