ARTEMIS-2137 web console retryMessage is broken

This commit is contained in:
Shailendra Kumar Singh 2018-10-19 08:18:03 +05:30 committed by Justin Bertram
parent 5ca6418cca
commit a9b3e83234
2 changed files with 1 additions and 3 deletions

View File

@ -194,12 +194,10 @@ var ARTEMIS = (function(ARTEMIS) {
if (mbean && selection) {
var selectedItems = $scope.gridOptions.selectedItems;
$scope.message = "Retry " + Core.maybePlural(selectedItems.length, "message");
var operation = "retryMessage(java.lang.String)";
angular.forEach(selectedItems, function (item, idx) {
var id = item.messageID;
if (id) {
var callback = (idx + 1 < selectedItems.length) ? intermediateResult : operationSuccess;
jolokia.execute(mbean, operation, id, onSuccess(callback));
ARTEMISService.artemisConsole.retryMessage(mbean, jolokia, id, onSuccess(callback));
}
});

View File

@ -56,7 +56,7 @@ function ArtemisConsole() {
};
this.retryMessage = function (mbean, jolokia, id, method) {
jolokia.execute(mbean, "retryMessage(java.lang.String)", id, method);
jolokia.execute(mbean, "retryMessage(long)", id, method);
};
this.sendMessage = function (mbean, jolokia, headers, type, body, durable, user, pwd, method) {