Thursday, September 18, 2014

Making jmx connectorPort and serviceUrlPath configurable

Making jmx connectorPort and serviceUrlPath configurable
---------------------
Its seems easy and it is :

Use the below configuration for it in your camel-server.xml.

----------------------------------------------------------
<!-- code to property file loading -->


 <camel:camelContext id="camel-server" trace="false" >
     
         <camel:jmxAgent id="camel-server-jmx" createConnector="true"
                        connectorPort="{{jmx.connectorPort}}" serviceUrlPath="{{jmx.serviceUrlPath}}" />

          <!-- your route definition will go here -->
 
</camel:camelContext>

---------------------------------------------------------


In properties file :
---------------------------------------------------------
##Jmx port and service url path
jmx.connectorPort=9004
jmx.serviceUrlPath=Camel

-------------------------------

No comments:

Post a Comment