public class EmbeddedHostControllerFactory extends Object
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.
EmbeddedProcessFactory
Modifier and Type | Field and Description |
---|---|
static String |
JBOSS_EMBEDDED_ROOT |
Modifier and Type | Method and Description |
---|---|
static HostController |
create(File jbossHomeDir,
org.jboss.modules.ModuleLoader moduleLoader,
Properties systemProps,
Map<String,String> systemEnv,
String[] cmdargs) |
public static final String JBOSS_EMBEDDED_ROOT
public static HostController create(File jbossHomeDir, org.jboss.modules.ModuleLoader moduleLoader, Properties systemProps, Map<String,String> systemEnv, String[] cmdargs)
Copyright © 2023 JBoss by Red Hat. All rights reserved.