cschneider / Karaf-Tutorial

http://cschneider.github.io/Karaf-Tutorial/
Apache License 2.0
271 stars 305 forks source link

tasklist-blueprint-cdi service #33

Closed sekaijin closed 7 years ago

sekaijin commented 7 years ago

Hi,

after compilation you ave 2 blueprint xml file in jar. Does it create two blueprintcontext or only one? If there are two, how is the connection between the beans declared in one and the services declared in the other? If there is only one, how is the duplication of id one resolved on cxf: bus and the other on the bean (taskServiceRest)? <cxf:bus id="taskServiceRest"> <bean id="taskServiceRest" class="net.lr.tasklist.service.impl.TaskServiceRest"

A+JYT

cschneider commented 7 years ago

All blueprint xmls in a bundle are joined into one blueprint context. This allows to mix automatically generated xml and hand written xml.

sekaijin commented 7 years ago

Nice feature. So I can set my camel routes to xml and my routebuilder, processor etc with annotations.

Thank you for this prompt response. A+JYT