5.2.2. Configure Socket Bindings
standard-sockets group, and is unable to create any further groups. Instead you can create alternate Standalone Server configuration files. For the 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.
|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.
|Logical name of the interface to which a socket based on this configuration should be bound. If not defined, the value of the "default-interface" attribute from the enclosing socket binding group will be used.
|If the socket will be used for multicast, the multicast address to use.
|Bound to the lifecycle of the conversation. The conversation scope is between the lengths of the request and the session, and is controlled by the application.
|If the above contexts do not meet your needs, you can define custom scopes.
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 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
writeoperation 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.
Select the Profile tabSelect the Profiles tab at the top right.
Select the Socket Binding item from the navigation menu.Select the Socket Binding menu item from the navigation menu. If you are using a Managed Domain, select the desired group in the Socket Binding Groups menu.
Add a New Socket Binding
- Click the Add button.
- Enter any required values for Name, Port and Binding Group.
- Click the Save to finish.
Edit Interface Attributes
- Select the Socket Binding to edit and click the Edit button.
- Enter any required values such as Name, Interface or Port.
- Click the Save to finish.