hi

I have used the @ManagedResource and @ManagedAttribute on a Bean that get's
used in a route.

The bean and new attribute works just fine and is visible using the jmx
console under processors, but the default processor attributes and
operations turns up as 'Unavailable' with a ReflectionException since it
using reflection on my custom bean.

Would i have to extend or implement any camel class/interface ?

Pojo class
@ManagedResource(description = "My fine res")
public class EpgMessageHandler {

        .......

        @ManagedAttribute
        public String getBSDTriggerServerState() {
                if (triggerServer != null && triggerServer.getServerState() != 
null) {
                        return triggerServer.getServerState().toString();
                }
                return "Unknown state";
        }
}

The documentation and unittests are not clear in this respect.
http://camel.apache.org/camel-jmx.html#CamelJMX-CamelJMX

Camel version 2.9.1

Cheers
Preben

--
View this message in context: 
http://camel.465427.n5.nabble.com/exposing-custom-jmx-properties-tp5713375.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to