Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 457 Bytes

Readme.md

File metadata and controls

21 lines (18 loc) · 457 Bytes

Apache Karaf

Usage

final KarafConfiguration conf = KarafConfiguration.builder().directory($KARAF_HOME).xmx("2g").build();

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

Standalone client:

try (Client client = new KarafClient<>(KarafConfiguration.builder().build())) {
	client.execute("version");
}