ARTEMIS-1470 - fix console move message
https://issues.apache.org/jira/browse/ARTEMIS-1470
This commit is contained in:
parent
cf63187838
commit
176dab3a78
|
@ -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));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue