Jayram Rout
Jayram Rout

Reputation: 57

Routes not starting in Karaf 4.1.1 but runs in ServiceMix

I am using a simple camel-spring project which has a file route to copy from one location to another. But when i deploy the bundle and even the bundle is in Active State, not sure why the routes are not starting. Below are the dependent bundles i have started.

28 │ Active │  80 │ 4.1.1          │ Apache Karaf :: OSGi Services :: Event
53 │ Active │  80 │ 2.19.1         │ camel-commands-core
54 │ Active │  50 │ 2.19.1         │ camel-core
55 │ Active │  80 │ 2.19.1         │ camel-karaf-commands
59 │ Active │  50 │ 2.19.1         │ camel-spring
68 │ Active │  80 │ 1.0.0.SNAPSHOT │ A Camel Spring Route

But when i use the same Camel Spring Route bundle to install in Apache Service Mix , I see in the route-list that my routes are started and working fine. Do i need to have any other bundles to be start for my route bundle to work .

Please follow the link to take a look into the bundle. Link to Download Bundle

Here is the Image of the simple project enter image description here

Below the details from service mix which works.

karaf@root>list | grep Active
 43 | Active   |  50 | 2.16.5                             | camel-core
 47 | Active   |  50 | 2.16.5                             | camel-spring
 49 | Active   |  80 | 2.16.5                             | camel-karaf-commands
224 | Active   |  80 | 1.0.0.SNAPSHOT                     | A Camel Spring Route

Thanks in advance.

Upvotes: 1

Views: 678

Answers (2)

Christian Schneider
Christian Schneider

Reputation: 19606

In karaf 4.1.1 spring dm is not present by default. You need to first do

feature:repo-add spring-legacy 4.1.1

Upvotes: 0

Claus Ibsen
Claus Ibsen

Reputation: 55525

You need to install the camel-spring-dm feature in Karaf 4.1.1, eg feature:install camel-spring-dm. Also mind spring-dm is deprecated / dead so its not recommended to be used. Use OSGi Blueprint instead if you want to do XML routes in Karaf/ServiceMix with Camel.

Upvotes: 3

Related Questions