JBoss EAPJakarta EEJava 21企業系統升級

JBoss EAP 01: standalone, domains, and management interfaces

··5 min read
Back to the JBoss EAP learning path

A colleague changed configuration, but requests still show the old behavior. First confirm the same instance: one host can run several JVMs, and the management endpoint may differ from the server receiving HTTP traffic. Start by mapping names to actual targets.

Version note: this series is based on JBoss EAP 8.1. The Red Hat documentation site now lists a newer 8.2 Beta, which is not a GA release. For version differences, see the Red Hat EAP documentation home in the sources.

Side by side: on the left, standalone, where one server reads standalone.xml and the CLI connects to 9990 by default; on the right, a managed domain, where the Domain Controller reads domain.xml, a Host Controller reads host.xml, and servers map to a profile through a server group; a footer notes that the management connection is not the server that receives HTTP traffic
What standalone mode and a managed domain manage. File paths and the port come from the WildFly 35 Admin Guide; server names are examples. Diagram drawn by KeepOnFirst.

Standalone is a management mode, not a Boot JAR

An EAP standalone instance manages one application server. It can still host WARs and enterprise components. A standalone Boot JAR describes application packaging and startup at a different layer.

The Red Hat EAP 8.1 introduction lists two operating modes. A standalone server is used to “manage instances individually”. A managed domain manages groups of instances “from a single control point”.

ModeDefault configuration fileManagesFirst question
standalonestandalone/configuration/standalone.xmlOne instanceWhich file did this process actually load?
managed domaindomain/configuration/domain.xml and host.xmlA group of instancesWhich server group and profile does this server use?
Two modes: where the configuration lives and what to ask first (paths from the WildFly 35 Admin Guide)

The paths come from the upstream WildFly 35 Admin Guide, the local stand-in for this series. Check them against the files in your EAP 8.1 installation.

bash
# For your own isolated training installation only.
# Run from the EAP installation directory; not executed for this tutorial.
./bin/standalone.sh -c standalone.xml

This illustrates a training installation, not a universal corporate startup command. RPM services, containers, or service managers may own launch arguments and JDK selection. Find the actual configuration from that entry point. Use managed interfaces for live changes rather than editing XML concurrently with a running server.

Why is the file name not enough? The WildFly 35 Admin Guide says that -c or --server-config selects a different configuration file at startup. These are its two examples.

bash
# Examples from the WildFly 35 Admin Guide, section 3.5.1.
bin/standalone.sh -c=standalone-full.xml
bin/standalone.sh --server-config=standalone-ha.xml

One standalone/configuration directory can hold several XML files. The startup arguments decide which one the process uses. So find the entry point first, note the -c or --server-config value, and then open that file. Without the argument, the default file is standalone.xml.

Domains centralize management; servers execute applications

text
Domain controller / domain model
  → host controller
    → server A ─┐
    → server B ─┴→ server-group → profile + socket-binding group

Application requests execute on the server JVMs.

domain.xml holds shared configuration; host.xml describes host-level roles and servers. Server groups associate servers with profiles, deployments, and network configuration. An EAP profile groups subsystem settings and is unrelated to a Spring profile. Domain management alone does not establish load balancing or session replication.

TermOfficial wording (excerpt)Plain meaning
domain.xmlmust be located in the domain/configuration directory of an installation that's meant to run the Domain ControllerLives in the installation that acts as Domain Controller
host.xmlcontains configuration information that is specific to the particular hostSettings for this host only
server groupset of server instances that will be managed and configured as oneServers managed and configured together
profilea named set of subsystem configurationsA named group of subsystem settings
Official definitions of four terms (WildFly 35 Admin Guide, sections 2.1.2 and 2.3.2)

These four definitions answer the first question when a change “did not take effect”. Which profile was changed? Does this server’s server group use that same profile? If the answers differ, the change never reaches this server.

Separate management from application HTTP

text
# Example local management address; use the actual authorized listener.
./bin/jboss-cli.sh --connect --controller=127.0.0.1:9990

# In the connected CLI, for a standalone training server:
version
:read-children-names(child-type=subsystem)
deployment info

The WildFly 35 Admin Guide says the CLI connects to localhost:9990 by default. The EAP 8.1 Configuration Guide places the management console and HTTP API on 9990. Check the EAP 8.1 CLI default in your own environment. You only need to give the port when the server listens on another one. Production may use a different port, TLS, or a proxy, so ask for the real address first. After connecting, run version first to confirm the product and version.

Check version information and deployment state. Permission failures, missing resources, and successful empty results are different. In a managed domain, shared configuration is under /profile=NAME. Per-server runtime is under /host=NAME/server=NAME. A standalone root address cannot simply stand in for them.

A successful management connection only proves that you reached the management interface. Confirm which server received the HTTP request with an access log or a request ID. Record both in the workbook before you claim to know your target.

Exercise: inspect declarations without EAP

bash
python3 inventory.py fixtures/standalone.synthetic.xml

Run this inside the kit. Find OrdersDS, AuditXA, mq-jakarta, and orders.war. The HTTP port remains ${jboss.http.port:8080}: the tool does not resolve properties, offsets, or listener state. This exercises XML reading, not an EAP-valid configuration or successful startup.

Check yourself, then compare

Does a default-looking 8080 declaration establish the listening port? No: configuration selection, expressions, offsets, and runtime remain unverified. Record the mode, host, server, group, and profile in the workbook. Distinguish not applicable from unknown.

Follow-up: in a managed domain, a colleague changed the profile named full, but server-two did not change. What do you check first? Answer: find the server group of server-two, then the profile of that group. Only when both lead to full should you inspect the setting itself.

Download the EAP offline kit: inventory, exercises, workbookNext: 02: WAR/EAR and deployment

Sources