Class EmbeddedHostControllerFactory


  • public class EmbeddedHostControllerFactory
    extends Object
    This is the host controller counterpart to EmbeddedServerFactory which lives behind a module class loader.

    HostContollerFactory that sets up an embedded server using modular classloading.

    To use this class the jboss.home.dir system property must be set to the application server home directory. By default it will use the directories {$jboss.home.dir}/standalone/config as the configuration directory and {$jboss.home.dir}/standalone/data as the data directory. This can be overridden with the ${jboss.server.base.dir}, ${jboss.server.config.dir} or ${jboss.server.config.dir} system properties as for normal server startup.

    If a clean run is wanted, you can specify ${jboss.embedded.root} to an existing directory which will copy the contents of the data and configuration directories under a temporary folder. This has the effect of this run not polluting later runs of the embedded server.

    Author:
    Ken Wills
    See Also:
    EmbeddedProcessFactory