How to embed mongodb in a java program instead of running a daemon -


is there way embed mongodb in java application instead of running daemon.

i have downloaded mongodb jdbc drivers , added them classpath.

you can not embed mongodb in java process. separate process.

you can start , stop when program starts/stops spawning process. not suggested mongodb meant run background server; if best pick random port start on doesn't affect other mongodb instances. need make sure include correct binaries platform java app deployed on since requires more jvm.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -