Hi,

Yes, we did.
We created an MBean for managing our configurations and hooked up
CamelContext to restart our routes.

There are many ways as you said, we tried to wire in CamelContext to our
MBean as below in our camel-context.xml.

        <camelContext autoStartup="true" id="camel"
xmlns="http://camel.apache.org/schema/spring";>
...</camelContext>
          <bean id="exporter" 
class="org.springframework.jmx.export.MBeanExporter"
lazy-init="false">
     <property name="beans">
      <map> 
        <entry key="com.my.domainname:name=RoutesMgmtBean"
value-ref="RoutesMgmtBean"/>
      </map>
    </property>
  </bean>

  <bean id="RoutesMgmtBean" class="com.my.domainname.RunCamelApplication">
    <property name="context" ref="camel"/>
  </bean>


Hope it helps!!!



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-and-JBoss-tp5720819p5720831.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to