The Artima Developer Community
Sponsored Link

Java Buzz Forum
Listing Camel Routes using JMX and Groovy

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Andrej Koelewijn

Posts: 594
Nickname: andrejk
Registered: Nov, 2002

Andrej Koelewijn is a Java and Oracle consultant
Listing Camel Routes using JMX and Groovy Posted: Mar 18, 2011 3:47 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Andrej Koelewijn.
Original Post: Listing Camel Routes using JMX and Groovy
Feed Title: Andrej Koelewijn
Feed URL: http://feeds.feedburner.com/AndrejKoelewijn
Feed Description: On Oracle, Java and OpenSource
Latest Java Buzz Posts
Latest Java Buzz Posts by Andrej Koelewijn
Latest Posts From Andrej Koelewijn

Advertisement
The following groovy script can be used to list all Camel routes on a running servicemix. Per route it will display state of the route, and some statistics. import javax.management.* import javax.management.remote.* import javax.lang.management.* def serverUrl = 'service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root' def env = [(JMXConnector.CREDENTIALS): ["smx","smx"] as String[]] def jmxUrl = new JMXServiceURL(serverUrl) def connect = JMXConnectorFactory.connect(jmxUrl,env) def [...]

Read: Listing Camel Routes using JMX and Groovy

Topic: Spring: OpenSessionInViewInterceptor & OpenSessionInViewFilter Examples Previous Topic   Next Topic Topic: Spring: OpenSessionInViewInterceptor vs. OpenSessionInViewFilter

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use