One of the innovating features of the application server is the powerful administration and management channels that include a CLI and a web-based administration console. The native CLI interface, by default, runs on port 9999, while the web console is bound on port 9990.
Management interfaces are discussed in detail in Chapter 7, Managing the Application Server, which provides a detailed coverage of the application server management tools.
Letting the configuration file flow, you can find the definition of the server’s profiles, which is one of the core concepts introduced in AS. A profile can be seen as a collection of subsystems: each subsystem in turn contains a subset of functionalities used by the application server.
For example, the web subsystem contains the definition of a set of connectors used by the container, the messaging subsystem defines the JMS configuration and modules used by the AS’s messaging provider, and so on.
One important difference between a standalone and a domain configuration file is the number of profiles contained in it. When using a standalone configuration, there’s a single profile that contains the set of subsystem configurations. Domain configuration can, on the other hand, provide multiple profiles.
The interfaces section contains the network interfaces/IP addresses or host names where the application server can be bound.
By default, the standalone application server defines two available network interfaces: the management and the public interface.
The management network interface is referenced by the AS management interfaces, as shown in the management interfaces section.
Both network interfaces resolve, by default, to the loop back address 127.0.0.1. This means that, by default, the application server public services and the management services are accessible only from the local machine. By changing the inet-address value, you can bind the network interface to another IP address, which is available on the machine:
In earlier releases of the application server, you used to launch the startup script with the additional -b parameter, followed by a valid host/IP address. This would cause the server to bind on the host/IP address provided. This option was not available in the initial AS 7 release however it has been restored in the AS 7.1.0 release.
A socket binding makes up a named configuration of a socket. Within this section, you are able to configure the network ports, which will be open and listening for incoming connections. As we have just seen, every socket binding group references a network interface through the default-interface attribute:
In order to change the ports where services are bound, you can change the port attribute of its service. A definitely better approach is, however, to use management interfaces that provide an immediate outcome of the affected change. In the following example, we are changing the default port for the http connector using the CLI.
The last section of the configuration file contains the deployed application, which has been registered on the application server. Each time a new application is deployed or un-deployed, this section is updated to reflect the new application stack.
Get Updates on Tech posts, Interview & Certification questions and training schedules