final EapConfiguration conf = EapConfiguration.builder().directory($EAP_HOME).profile("standalone-full.xml").xmx("2g").build();
try (Container cont = new EapContainer<>(conf)) {
cont.start()
try(Client cli = container.getClient()) {
cli.execute(":whoami");
}
}
Standalone client:
try (Client client = new EapClient<>(EapConfiguration.builder().build())) {
client.execute(":whoami");
}
- EAP 6 + Java 7/8
- Default