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
Post a Comment