Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting)


migrateWMQMLP command

Use the migrateWMQMLP command to migrate a WebSphere MQ message listener port definition to an activation specification definition.

To run the command, use the AdminTask object of the wsadmin scripting client.

This command is valid only when it is used with WAS v7 and later application servers. Do not use it with earlier versions.

For a list of the available WebSphere MQ messaging provider administrative commands, plus a brief description of each command, run at the wsadmin prompt:

print AdminTask.help('WMQAdminCommands')

For overview help on a given command, run at the wsadmin prompt:

print AdminTask.help('command_name')

After using the command, save changes to the master configuration. For example, use the following command:

AdminConfig.save()

Use the migrateWMQMLP command to migrate a WebSphere MQ message listener port definition to an activation specification definition. After the activation specification has been created, you can delete the listener port.

Note that the Maximum retries listener port setting is not migrated to the new activation specification as there is no exact equivalent.

When you are migrating a listener port associated with a message-driven bean (MDB) that has the subscriptionDurability activation configuration property set to Durable, and that MDB already has an active durable subscription, the durable subscription is not migrated. This is because listener ports and WebSphere MQ activation specifications use incompatible forms of subscription name. As a result there can be two active durable subscriptions subscribed to the relevant topic for the same MDB. As part of the migration process, delete the old durable subscription that was associated with the listener port and manually clean up any messages associated with it. For information on how do to this see the WebSphere MQ and WebSphere Message Broker information centres.


Target object

The message listener port to be migrated.



Required parameters

-asName

The name of the activation specification to be created.

-asJNDIName

The JNDI name of the activation specification to be created.

-asScope

The type of scope at which to create the activation specification (server, node, cluster or cell). Note that the cluster option is only supported when the server that contains the message listener port is part of a cluster. If not specified this defaults to server. The scopes specified are relative to the message listener port, so node is the node of the server that contains the message listener port.



Optional parameters

None.


Example

The following example shows how to migrate a message listener port to an activation specification.


Migrate a listener port to an activation specification for use with the WebSphere MQ messaging provider
Use the wsadmin scripting AdminTask object for scripted administration
Start the wsadmin scripting client using wsadmin.sh


Related


createWMQActivationSpec command
deleteWMQActivationSpec command
listWMQActivationSpecs command
modifyWMQActivationSpec command
showWMQActivationSpec command
Map of administrative console panel names to command names and WebSphere MQ names
WebSphere MQ library
WebSphere Message Broker library
WMQAdminCommands command group

+

Search Tips   |   Advanced Search