|
Camel JMX has been edited by William Tam (Jun 12, 2008). Content:Camel JMXApache Camel has extensive support for JMX to allow you to monitor and control the behavior of the broker via the JMX MBeans Using JMX to monitor Apache CamelYou can enable/disable JMX support as follows... 1. Run a camel context setting the context property useJmx to true. <camelContext id="camel" useJmx="true" xmlns="http://activemq.apache.org/camel/schema/spring"> <route> ... </route> </camelContext>
Advanced JMX ConfigurationThe spring configuration file allows you to configure how Camel is exposed to JMX for management. In some cases, you could specify more information here, like the connector's port or the path name. Example:<camelContext id="camel" useJmx="true" xmlns="http://activemq.apache.org/camel/schema/spring"> <jmxAgent id="agent" connectorPort="20008" jmxDomainName="org.apache.camel.test"/> <route> <from uri="seda:start"/> <to uri="mock:result"/> </route> </camelContext> If you wish to change the Java 5 JMX settings you can use various JMX system properties For example you can enable remote JMX connections to the Sun JMX connector, via setting the following environment variable (using set or export depending on your platform). These settings only configure the Sun JMX connector within Java 1.5+, not the JMX connector that Camel creates by default. SUNJMX=-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=1616 \ -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false (The SUNJMX environment variable is simple used by the startup script for Camel, as additional startup parameters for the JVM. If you start Camel directly, you'll have to pass these parameters yourself.) jmxAgent Properties Reference
|
Unsubscribe or edit your notifications preferences
