A container executing in the same JVM where Cargo is running
An embedded container means that Cargo is using directly the container's Java API to control it. If you're using one of the embedded implementation you'll need to ensure that you have the container's JARs in your classpath.
Advantages of embbeded mode:
- Faster. There's no need to start a new JVM nor new threads.
- Simpler. There's no need to install the container in a directory.
Disadvantages of embbeded mode:
- Potentially difficult to control: the server will inherit whatever has existed in the JVM before the launch, such as predefined properties, existing ClassLoaders, some preinitialized components (XML parsers, etc.) and others.
Here is the list of container implementations that support the embedded mode: