Hello,
I am attempting to upgrade an application from Camel 2.15.2 to Camel 2.25.3
(along with other dependencies).  I am using camel-spring to scan a package
for RouteBuilder implementations, which then set up a route.  This worked
well with Camel 2.15, but is not working after the upgrade.  No errors are
generated, and there is no indication from the logs that the RouteBuilder
implementations are being instantiated.

Below is an example of my META-INF/spring/camel-context.xml file:
<?xml version="1.0" encoding="UTF-8"?>

<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:cxf="http://camel.apache.org/schema/cxf";
 xsi:schemaLocation="
 http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
 http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
 http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd";>

 <cxf:rsServer id="myServer" address="http://0.0.0.0:9292/service";
serviceClass="com.mycompany.service.server.ServiceServer"/>

 <camelContext id="my-server-camel-context" xmlns="
http://camel.apache.org/schema/spring";>
 <package>com.mycompany.service.server</package>
 </camelContext>
</beans>

This application is running within Karaf, and the camel:context-list
command does not return any contexts, making me believe that Spring is not
being utilized as it should.  I am not using Spring Boot, so my
understanding is that including the above file is sufficient to set up the
context.

Have there been significant changes from Camel 2.15 to 2.25 which would
prevent this from working?

Thanks,
Ron

Reply via email to