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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -