ARTEMIS-2137 web console retryMessage is broken
This commit is contained in:
parent
5ca6418cca
commit
a9b3e83234
|
@ -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));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue