Skip to content

Commit

Permalink
Fixed Camel tracer to work in Tomcat, as it must use POST.
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Apr 17, 2013
1 parent 50a9ded commit 1c802f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hawtio-web/src/main/webapp/app/camel/js/trace.ts
Expand Up @@ -45,8 +45,7 @@ module Camel {
function setTracing(flag:Boolean) {
var mbean = getSelectionCamelTraceMBean(workspace);
if (mbean) {
var options = onSuccess(tracingChanged);
jolokia.execute(mbean, 'setEnabled', flag, options);
jolokia.setAttribute(mbean, "Enabled", flag, onSuccess(tracingChanged));
}
}

Expand All @@ -66,7 +65,7 @@ module Camel {

var mbean = getSelectionCamelTraceMBean(workspace);
if (mbean) {
$scope.tracing = jolokia.execute(mbean, 'isEnabled');
$scope.tracing = jolokia.getAttribute(mbean, "Enabled", onSuccess(null));

if ($scope.tracing) {
var traceMBean = mbean;
Expand Down

0 comments on commit 1c802f8

Please sign in to comment.