Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 669 Bytes

File metadata and controls

29 lines (25 loc) · 669 Bytes

Wildfly

Usage

final WildflyConfiguration conf = WildflyConfiguration.builder().directory($WILDFLY_HOME).profile("standalone-full.xml").xmx("2g").build();

try (Container cont = new WildflyContainer<>(conf)) {
	cont.start()
	try(Client cli = container.getClient()) {
		cli.execute(":whoami");
	}
}

Standalone client:

try (Client client = new WildflyClient<>(WildflyConfiguration.builder().build())) {
    client.execute(":whoami");
}

Compatibility

  • Wildfly 10 (EAP 7) + Java 8
    • Default
  • Wildfly 9 + Java 7 / 8
    • Required properties:
      • version.wildfly=1.0.2.Final
      • version.surefire=2.18