manageWMQ command
Use the manageWMQ command to manage the settings of the WebSphere MQ resource adapter installed in a node.
To run the command, use AdminTask of the wsadmin scripting client.
This command is valid only when it is used with WAS V7 and later appservers. Do not use it with earlier versions.
For a list of the available WebSphere MQ messaging provider admin commands, plus a brief description of each command, enter the following command at the wsadmin prompt:
print AdminTask.help('WMQAdminCommands')
For overview help on a given command, enter the following command at the wsadmin prompt:
print AdminTask.help('command_name')
After using the command, save the changes to the master configuration. For example, use the following command:
AdminConfig.save()
Purpose
Use the manageWMQ command to manage the settings associated with the WebSphere MQ resource adapter installed in a node.
Use the manageWMQ command to manage the native library and query the metadata of the WebSphere MQ resource adapter on each node.
Target object
A WebSphere MQ resource adapter on a specific node.
Required parameters
None.
Optional parameters
- -nativePath
- This parameter specifies the path to the WebSphere MQ messaging provider native libraries that are used by the WebSphere MQ resource adapter to establish a bindings mode connection to the queue manager.
- -query
- This parameter provides information about the WebSphere MQ messaging provider. This can be either the WebSphere MQ resource adapter installed into WAS or a WebSphere MQ resource adapter present on the file system of the node.
Example
The following example shows how to enable inbound JCA message delivery on the z/OS platform.
- Jython...
wsadmin>AdminTask.manageWMQ("WebSphere MQ Resource Adapter (cells/L3A3316Node04Cell/nodes/L3A3316Node05/servers/server1|resources.xml# J2CResourceAdapter_1201601803796)", ["-enableInbound true"])
- Jacl...
wsadmin>$AdminTask manageWMQ "WebSphere MQ Resource Adapter (cells/L3A3316Node04Cell/nodes/L3A3316Node05/servers/server1|resources.xml# J2CResourceAdapter_1201601803796)" {-enableInbound true}
Related tasks
Use AdminTask for scripted administration
Start wsadmin
Related
migrateWMQMLP
createWMQQueue
deleteWMQQueue
listWMQQueues
modifyWMQQueue
showWMQQueue
Mapping of admin console panel names to command names and WebSphere MQ names
WMQAdminCommands