Thanks for the tip... but I had looked at the FAQ at the bottom and all it
said was to implement Service, i.e. org.apache.camel.Service . I actually
did this on my processor. 

Any other ideas? :)


Claus Ibsen-2 wrote:
> 
> Hi
> 
> At the very bottom of the JMX wiki page is a section about processors
> and a link to a FAQ :)
> 
> 
> On Wed, Mar 3, 2010 at 9:27 PM, camel-fan <[email protected]>
> wrote:
>>
>> Hi all,
>>
>> I am trying to enable a simple processor to be JMX enabled and visible in
>> JConsole.
>>
>> I have read http://camel.apache.org/camel-jmx.html and defined my
>> processor
>> as follows (simplified it a bit):
>>
>> @ManagedResource(description = "Managed Processor" )
>> public class MyProcessor implements Processor,
>> ManagementAware<MyProcessor>,
>> Service {
>>
>>   �...@managedattribute
>>    public String getFoo() {
>>        return "bar";
>>    }
>>   �...@override
>>    public Object getManagedObject(MyProcessor arg0) {
>>        return this;
>>    }
>>   �...@override
>>    public void process(Exchange exchange) throws Exception {}
>>   �...@override
>>     public void start() throws Exception {}
>>     @Override
>>     public void stop() throws Exception {}
>> }
>>
>> The problem is that I can't see my processor in JConsole, I can connect
>> to
>> camel context and see all the running
>> components/endpoints/processors/services etc... but I don't see my own
>> processor listed.
>>
>> The processor is registered as a bean in my spring xml config simply as:
>> <bean id="myprocessor" class="MyProcessor"></bean>
>>
>> The processor is working in my routes.
>>
>> Am I missing something?
>>
>> I am using: JDK 1.6, Camel 2.1, Spring 2.5.6
>>
>> I really appreciate any help you can provide!
>>
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Using-custom-processor-with-JMX-and-JConsole-tp27772716p27772716.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Using-custom-processor-with-JMX-and-JConsole-tp27772716p27786155.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to