I created these camel routes
from("direct:pageExtraction")
.bean(PageManager.class, "setProperties(*, ${headers})")
.filter().method(PageManager.class, "exists").to("seda:pagePostProcessing").end()
.to("seda:pageImposition");
from("seda:pagePostProcessing")
.bean(PageManager.class, "extractThumbnail(*, ${headers})")
.bean(PageManager.class, "extractCMYKSeparation(*, ${headers})")
.bean(PageManager.class, "persist(*, ${headers})")
.bean(PageManager.class, "cleanUp(${headers})")
.to("seda:pageImposition");
from("seda:pageImposition")
.bean(PageManager.class, "extractImposition(*, ${headers})")
.to("seda:printQueue");
In the end, seda: printQueue has no consumers, sending a message on the route, as it seems to work great. Now I want to introduce a new consumer after the route has been initialized, I thought it would be possible to programmatically create a Spring bean and let Camel pick up the bean using the @Consume(uri="seda:printQueue")annotation, but as soon as I create the consumer, the camel complains
org.apache.camel.RuntimeCamelException: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '4965d710-b5c7-41cf-97e9-a42bdfcea894' is defined]
Any thoughts?
[UPDATE]
, , PrintQueue, Spring, AutowireCapableBeanFactory, factory.autowireBean(printQueueInstance), factory.initializeBean(printQueueInstance, id) id - 4965d710-b5c7-41cf-97e9-a42bdfcea894, , , - , , bean - Spring Camel, ?