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(File jbossHomeDir,
Properties systemProps,
Map<String,String> systemEnv,
String... systemPackages) |
static StandaloneServer |
create(org.jboss.modules.ModuleLoader moduleLoader,
File jbossHomeDir,
Properties systemProps,
Map<String,String> systemEnv) |
static void |
main(String[] args)
Deprecated.
|
public static StandaloneServer create(org.jboss.modules.ModuleLoader moduleLoader, File jbossHomeDir, Properties systemProps, Map<String,String> systemEnv)
public static StandaloneServer create(File jbossHomeDir, Properties systemProps, Map<String,String> systemEnv, String... systemPackages)
@Deprecated public static void main(String[] args) throws Throwable
Throwable
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.