republishEDMessages command
Use the republishEDMessages to republish the messages from the exception destination to the actual destination that they are originally produced for. This command can move messages from Exception destination to either a queue or a topic space. Based on the destination provided, the command determines the corresponding exception destination even if it is a custom exception destination. The messages that are to be moved can also be filtered through the selection criteria, which can be passed as an optional parameter in the command. In addition, the command also accepts timeout parameter, which can be used to limit the time that the operation can run on the messaging engine..
Rôle
This command republishes the messages from the exception destination to the actual destination that they are produced for.
Objet cible
Aucun.Paramètres obligatoires
- -busName
- Nom du bus auquel la destination et sa destination d'exception appartiennent.
- -destination
- The name of the destination for which the messages must be fetched from the corresponding exception destination.
Paramètres conditionnels
- -subscriptionId
- The subscription name for which the messages must be picked up. This is a mandatory parameter when the destination that is provided in the command is a Topic Space. L'utilisateur peut spécifier des ID d'abonnement durable et non durable. Notez que l'abonnement non durable change à chaque redémarrage.
Paramètres facultatifs
- -messageSelector
- Les critères de sélection permettent de filtrer les messages dans la destination d'exception, en plus des zones Nom de destination et ID d'abonnement.Remarque : JMS_IBM_ExceptionProblemDestination and JMS_IBM_ExceptionTimestamp parameters are not allowed in the selection criteria.
- -timeout
- The maximum duration of time the command can run on the messaging engine. La valeur doit être spécifiée en secondes.
Exemple
- Avec Jython :
wsadmin>print AdminTask.republishEDMessages('[-busName TestBus -destination Queue1]') wsadmin>print AdminTask.republishEDMessages('[-busName TestBus -destination Default.Topic.Space -subscriptionId ClientID##SubID -messageSelector "color=\'blue\'" -timeout 10]')