Thanks for the inputs.

I was able to get my original example working after tweaking the packageScan
configuration.

The original reason the camel context failed to start was that it complained
that the bean 'Listener' could not 
be found. I removed the class, which had the above addListener method, from
the packageScan of the camel 
context and the context started up just fine. Subsequently, I was able add
routes using implementations of 
the Listener and all is well.

I suppose, since the anonymous class ends up in the classpath as being part
of the package, the scanner 
finds it and tries to inject the bean.

--
View this message in context: 
http://camel.465427.n5.nabble.com/Observer-Pattern-using-Camel-tp4491726p4495738.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to