Novaordis-jboss

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

Adapter library for JBoss CLI and other JBoss-related functionality.

User Manual

The library provides programmatic access to a JBoss CLI controller.

The interaction pattern is similar to:

JBossControllerClient c = new JBossControllerClient();
c.setHost("localhost");
c.setPort(9999);
c.setUser("admin");
c.setPassword(...);

c.connect();

c.getAttributeValue("something");

c.disconnect();

io.novaordis.jboss.cli.Main contains the above simple example. It can be executed with ./src/main/bash/jboss-cli.

Classpath

Before connecting locally to a specific JBoss instance, the bash wrapper must built the specific classpath for that JBoss instance. The project also contains bash logic that builds the required classpath fragment given the JBOSS_HOME directory:

https://github.com/NovaOrdis/jboss-cli/blob/master/src/main/bash/jboss-cli.shlib

Logging Configuration

TODO.

Development

GitHub

https://github.com/NovaOrdis/jboss-cli

TODO