A Java application can embed the OpenDS JAR files and thus run the service in the same JVM. When doing so, the client application is also in charge of the OpenDS directory server lifecycle. We discussed benefits and possible reasons for using embedded software in the first section of this chapter. So let's go straight into the details of running OpenDS in embedded mode.
Being able to run OpenDS in embedded mode means the client application and the directory server are running within the same JVM which leads to the possibility of having specific kinds of use cases, along with many benefits including: