Hi,

Hopefully an easy one to answer but I've been unable to find the answer
myself.  I've created a test class that extends CamelTestSupport.  I have a
POJO class with a method that is annotated with
@Consume(uri="direct:someEndpoint").  The problem is that when I use a
producer template in my unit test method to send to the above endpoint I get
the error message "No consumers available on endpoint:
Endpoint[direct://someEndpoint]".

I figured it might be something to do with the consumer POJO not being
registered so I overrode the method 

protected JndiRegistry createRegistry()

created a new instance of the bean and added it to the registry.  I also
created a jndi.properties as per http://camel.apache.org/camel-test.html

Other than that it's worth mentioning that I am developing my application
using CDI.

Thanks in advance for your help.







--
View this message in context: 
http://camel.465427.n5.nabble.com/CamelTestSupport-and-POJO-consumer-tp5768600.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to