server resume command
The server resume
command resumes all or specific inbound work for an Open Liberty server.
By pausing and resuming inbound work, you can isolate resources for auditing or debugging purposes without having to stop the server. You can resume all components that were paused or specific components that were paused.
Usage examples
You can resume all components that were paused or specific components that were paused.
Resume all components on the myserver
server:
server resume myserver
Resume two specific components on the myserver
server, where the values of target1
and target2
are components that can be paused for each supported protocol:
server resume myserver --target=target1,target2
Resume the db1HttpEndpoint
and db2HttpEndpoint
HTTP endpoints on the myserver
server:
server resume myserver --target=db1HttpEndpoint,db2HttpEndpoint
Resume the Bean
MDB message endpoint on the myserver
server:
server resume myserver --target=MDBApplication#MDBModule.jar#Bean
Resume the db1HttpEndpoint
HTTP endpoint and the Bean
MDB message endpoint on the myserver
server:
server resume myserver --target=db1HttpEndpoint,MDBApplication#MDBModule.jar#Bean
Syntax
Run the command from the path_to_liberty/wlp/bin
directory.
server resume serverName [options]
- serverName
The name of the server to run the command against. If no server is specified, a server called
defaultServer
is automatically created to run the command against.
Options
The follwong options are available for the server resume command. If you do not specify any endpoints, the entire server is resumed.
Option | Description |
---|---|
--target=http_endpoint,http_endpoint,… | A comma-delimited list of HTTP endpoints to be resumed. Provide the ID of each HTTP endpoint as specified in the server configuration. For example, in the following configuration, you can resume the
|
--target=message_endpoint,message_endpoint,… | A comma-delimited list of HTTP endpoints to be resumed. Provide the activation name of each MDB message endpoint in the format: |
Exit codes
The following exit codes are available for the server resume
command and the equivalent executable JAR file ws-server.jar
:
Code | Explanation |
---|---|
0 | This code indicates successful completion of the requested operation. |
1 | This code indicates invocation of a redundant operation. For example, starting a started server or stopping a stopped server. This code might also be returned by JVM if invalid Java options are used. |
3 | This code indicates that an unsupported action was called on a running server. For example, the server not paused when the resume action is called. |
>=20 | Exit codes that are greater than or equal to 20 indicate that an error occurred while performing the request. Messages are printed and captured in log files with more information about the error. |