Can I use Camel 2 with ServiceMix 3.3?  If so, how exactly?

I have a servicemix-camel service unit that was generated by Maven to use
Camel 1.4.0.  I changed the camel-version property to be 2.0-M1 and have
added the following dependencies.

        <dependency>
        <groupId>org.apache.camel</groupId>
                <artifactId>camel-core</artifactId>
                <version>2.0-M1</version>
        </dependency>
        <dependency>
                <groupId>org.apache.camel</groupId>
                <artifactId>camel-jms</artifactId>
                <version>2.0-M1</version>
        </dependency>
        <dependency>
                <groupId>org.apache.camel</groupId>
                <artifactId>camel-spring</artifactId>
                <version>2.0-M1</version>
        </dependency>
    <dependency>
        <groupId>org.apache.camel</groupId>
                <artifactId>camel-activemq</artifactId>
                <version>1.1.0</version>
        </dependency>

The problem is that when servicemix starts this component, I get the
following error...

ERROR - CamelJbiComponent              -
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'camelContext:beanPostProcessor': Cannot r
esolve reference to bean 'camelContext' while setting bean property
'camelContext'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error cre
ating bean with name 'camelContext': Invocation of init method failed;
nested exception is java.lang.NoSuchMethodError:
test.MyRouteBuilder.from(Ljava/lang/String
;)Lorg/apache/camel/model/RouteDefinition;

Do I need to change my camel-context.xml file to get it to work with Camel 2
or something...here it is.

<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:camel="http://camel.apache.org/schema/spring";
       xmlns:amq="http://activemq.org/config/1.0";>

  <camelContext id="camelContext" useJmx="true"
xmlns="http://activemq.apache.org/camel/schema/spring";>
    <package>test</package> 
  </camelContext>

</beans>

I have a simple MyRouteBuilder.java file setup in the test package...but
clearly something isn't working right.  

At this point I'm assuming that I can't use Camel 2 with SMX 3.3.  If anyone
know otherwise, please let me know...thanks





-----
Ben O'Day
Vektrel - Senior Consultant

-- 
View this message in context: 
http://www.nabble.com/Camel-2.0-with-Servicemix-3.3--tp24224485p24224485.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to