Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
#285: Camel diagram do not show error if route stats mbean is not ava…
…il due old Camel release.
  • Loading branch information
davsclaus committed Apr 25, 2013
1 parent 102dc81 commit 5f73467
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hawtio-web/src/main/webapp/app/activemq/js/graph.ts
Expand Up @@ -188,10 +188,10 @@ module ActiveMQ {
{type: 'read',
mbean: "org.apache.activemq:Type=Producer,*"}
// there may not be any producers so be silent if no mbeans exists
], onSuccess([populateSubscribers, populateProducers], {silent : true, error: false}));
], onSuccess([populateSubscribers, populateProducers], {silent: true, error: false}));
} else {
// the network bridge is optional and may not be in use, so do not barf on error
jolokia.request({type: 'read', mbean: "org.apache.activemq:Type=NetworkBridge,*"}, onSuccess(populateNetworks, {silent : true, error: false}));
jolokia.request({type: 'read', mbean: "org.apache.activemq:Type=NetworkBridge,*"}, onSuccess(populateNetworks, {silent: true, error: false}));
}
}
});
Expand Down
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/camel/js/camel.ts
Expand Up @@ -89,7 +89,8 @@ module Camel {
type: 'exec', mbean: $scope.mbean,
operation: 'dumpRoutesStatsAsXml',
arguments: [true, true]
}, onSuccess(statsCallback));
// the dumpRoutesStatsAsXml is not available in all Camel versions so do not barf on errors
}, onSuccess(statsCallback, {silent: true, error: false}));
}
return width;
}
Expand Down

0 comments on commit 5f73467

Please sign in to comment.