On Tue, Mar 10, 2009 at 5:27 PM, smullins7 <[email protected]> wrote: > > Hey thanks for the quick reply, I should have said what I've already tried, > using Spring JMX wiring does not work. I add the annotations on my custom > endpoint, then I wire in the mbean server, assembler, etc and i don't see my > custom endpoint - I still only see the camel mbeans. I tried using the > <jmxAgent> in my camelContext to specify my mbean server domain but that had > no affect. > > My endpoint should not be spring wired, my custom component will create the > endpoint so only my component is spring wired. I would try to get it working in JConsole without Camel, eg get your stuff working. To be visible in org.apache.camel you need to get your stuff registetered in that domain as well. So maybe you can get it working in your own domain first so you know it works.
Then you can take it from there to see if you can get it under the org.apache.camel domain. > > > Claus Ibsen-2 wrote: >> >> On Mon, Mar 9, 2009 at 10:16 PM, smullins7 <[email protected]> wrote: >>> >>> Hello, I have custom endpoints developed that I would like to expose as >>> mbeans through JMX. Currently, only the attributes of ManagedEndpoint >>> show >>> up. What is the easiest way to get a custom endpoint exposed in jmx >>> while >>> piggy-backing off the existing mbean server/naming strategy/etc supplied >>> by >>> camel? >> As an Endpoint is just an Object I assume you can using standard >> Spring JMX to expose attributes to JMX. >> And then use the spring XML stuff to register. >> >> To use you custom endpoint in Camel just declare it as a spring bean with >> and id >> >> <bean id="myEndpoint" ...> >> >> <from uri="activemq:queue:foo"/> >> <to ref="myEndpoint"/> >> >> >>> -- >>> View this message in context: >>> http://www.nabble.com/Adding-custom-mbeans-to-camel-JMX-mbeanserver-tp22421517p22421517.html >>> Sent from the Camel - Users (activemq) mailing list archive at >>> Nabble.com. >>> >>> >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> >> > > -- > View this message in context: > http://www.nabble.com/Adding-custom-mbeans-to-camel-JMX-mbeanserver-tp22421517p22438097.html > Sent from the Camel - Users (activemq) mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/
