ARTEMIS-1470 - fix console move message

https://issues.apache.org/jira/browse/ARTEMIS-1470
This commit is contained in:
Andy Taylor 2017-10-18 16:41:38 +01:00 committed by Justin Bertram
parent cf63187838
commit 176dab3a78
2 changed files with 1 additions and 3 deletions

View File

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

View File

@ -52,7 +52,7 @@ function ArtemisConsole() {
};
this.moveMessage = function (mbean, jolokia, id, queueName, method) {
jolokia.execute(mbean, "moveMessage(java.lang.String,java.lang.String)", id, queueName, method);
jolokia.execute(mbean, "moveMessage(long,java.lang.String)", id, queueName, method);
};
this.retryMessage = function (mbean, jolokia, id, method) {