btw I also was confused which annotations to use, and after few experiments I manged to make it work by using the spring annotations locally.
Also http://camel.apache.org/why-is-my-processor-not-showing-up-in-jconsole.htmlsays to use the spring annotations, not the Camel ones. Not sure what's the recommended way though. Cheers, Bilgin On 13 November 2012 01:57, Willem jiang <willem.ji...@gmail.com> wrote: > I think we should not use the spring annotation for JMX export in camel. > That is why we define the same annotation in camel api. > > > -- > Willem Jiang > > Red Hat, Inc. > FuseSource is now part of Red Hat > Web: http://www.fusesource.com | http://www.redhat.com > Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) > (English) > http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese) > Twitter: willemjiang > Weibo: willemjiang > > > > > > On Tuesday, November 13, 2012 at 7:08 AM, Christian Müller wrote: > > > > org.apache.camel.processor.idempotent.jdbc.AbstractJdbcMessageIdRepository > > is using org.springframework.jmx.export.annotation.ManagedResource and > > org.springframework.jmx.export.annotation.ManagedOperation. > > Shouldn't it be org.apache.camel.api.management.ManagedResource and > > org.apache.camel.api.management.ManagedOperation? > > > > Because of this, the build with Spring 3.2.0.RC1 (I created the profile > > locally at present) is failing with the following error (I think because > > the classes are removed or moved): > > > > INFO] > > ------------------------------------------------------------------------ > > [INFO] BUILD FAILURE > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 15:36.683s > > [INFO] Finished at: Mon Nov 12 23:56:03 CET 2012 > > [INFO] Final Memory: 262M/507M > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] Failed to execute goal > > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile > > (default-compile) on project camel-sql: Compilation failure: Compilation > > failure: > > [ERROR] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 > > [ERROR] > > > /Users/cmueller/workspaceCamel/camel/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/AbstractJdbcMessageIdRepository.java:[27,48] > > package org.springframework.jmx.export.annotation does not exist > > [ERROR] > > > /Users/cmueller/workspaceCamel/camel/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/AbstractJdbcMessageIdRepository.java:[28,48] > > package org.springframework.jmx.export.annotation does not exist > > [ERROR] > > > /Users/cmueller/workspaceCamel/camel/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/AbstractJdbcMessageIdRepository.java:[46,1] > > cannot find symbol > > [ERROR] symbol: class ManagedResource > > [ERROR] @ManagedResource("JDBC IdempotentRepository") > > [ERROR] > > > /Users/cmueller/workspaceCamel/camel/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/AbstractJdbcMessageIdRepository.java:[116,5] > > cannot find symbol > > [ERROR] symbol : class ManagedOperation > > [ERROR] location: class > > > org.apache.camel.processor.idempotent.jdbc.AbstractJdbcMessageIdRepository<T> > > [ERROR] > > > /Users/cmueller/workspaceCamel/camel/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/AbstractJdbcMessageIdRepository.java:[134,5] > > cannot find symbol > > [ERROR] symbol : class ManagedOperation > > [ERROR] location: class > > > org.apache.camel.processor.idempotent.jdbc.AbstractJdbcMessageIdRepository<T> > > [ERROR] > > > /Users/cmueller/workspaceCamel/camel/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/AbstractJdbcMessageIdRepository.java:[152,5] > > cannot find symbol > > [ERROR] symbol : class ManagedOperation > > [ERROR] location: class > > > org.apache.camel.processor.idempotent.jdbc.AbstractJdbcMessageIdRepository<T> > > > > > > Best, > > Christian > > > > -- > > >