5.2.2. Configure Socket Bindings
standard-socketsgroup, and is unable to create any further groups. Instead you can create alternate standalone server configuration files. For a managed domain however, you can create multiple socket binding groups and configure the socket bindings that they contain as you require. The following table shows the available attributes for each socket binding.
Table 5.2. Socket Binding Attributes
| ||Logical name of the socket configuration that should be used elsewhere in the configuration.||Required|
| ||Base port to which a socket based on this configuration should be bound. Note that servers can be configured to override this base value by applying an increment or decrement to all port values.||Required|
| || Logical name of the interface to which a socket based on this configuration should be bound. If not defined, the value of the ||Optional|
| ||If the socket will be used for multicast, the multicast address to use.||Optional|
| ||If the socket will be used for multicast, the multicast port to use.||Optional|
| || If ||Optional|
Configure Socket Bindings in Socket Binding GroupsChoose either the management CLI or the management console to configure your socket bindings as required.
Configure Socket Bindings Using the Management CLIUse the management CLI to configure socket bindings.
Add a New Socket BindingUse the
addoperation to create a new address setting if required. You can run this command from the root of the management CLI session, which in the following examples creates a new socket binding titled newsocket, with a
portattribute declared as 1234. The examples apply for both a standalone server and a managed domain editing on the
standard-socketssocket binding group as shown.
[domain@localhost:9999 /] /socket-binding-group=standard-sockets/socket-binding=newsocket/:add(port=1234)
Edit Pattern AttributesUse the
write-attributeoperation to write a new value to an attribute. You can use tab completion to help complete the command string as you type, as well as to expose the available attributes. The following example updates the
portvalue to 2020
[domain@localhost:9999 /] /socket-binding-group=standard-sockets/socket-binding=newsocket/:write-attribute(name=port,value=2020)
Confirm Pattern AttributesConfirm the values are changed by running the
read-resourceoperation with the
include-runtime=trueparameter to expose all current values active in the server model.
[domain@localhost:9999 /] /socket-binding-group=standard-sockets/socket-binding=newsocket/:read-resource
Configure Socket Bindings Using the Management ConsoleUse the management console to configure socket bindings.
Log into the Management Console.Log into the management console of your managed domain or standalone server.
Navigate to the Configuration tab.Select the Configuration tab at the top of the screen.
Select the Socket Binding item from the navigation menu.Expand the General Configuration menu. Select Socket Binding. If you are using a managed domain, select the desired group in the Socket Binding Groups list.
Add a New Socket Binding
- Click thebutton.
- Enter any required values for Name, Port and Binding Group.
- Clickto finish.
Edit Socket Binding
- Select a socket binding from the list and click.
- Enter any required values such as Name, Interface or Port.
- Clickto finish.