public class EmbeddedServerFactory extends Object
ServerFactory that sets up a standalone 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.
Modifier and Type | Method and Description |
---|---|
static StandaloneServer |
create(org.jboss.modules.ModuleLoader moduleLoader,
File jbossHomeDir) |
static StandaloneServer |
create(String jbossHomePath,
String modulePath,
String bundlePath,
String... systemPackages) |
static StandaloneServer |
create(String jbossHomePath,
String modulePath,
String bundlePath,
String[] systemPackages,
String[] cmdargs) |
public static StandaloneServer create(String jbossHomePath, String modulePath, String bundlePath, String... systemPackages)
public static StandaloneServer create(String jbossHomePath, String modulePath, String bundlePath, String[] systemPackages, String[] cmdargs)
public static StandaloneServer create(org.jboss.modules.ModuleLoader moduleLoader, File jbossHomeDir)
Copyright © 2015 JBoss by Red Hat. All rights reserved.