camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tarjei Huse <>
Subject Re: ProducerTemplate with Spring and without
Date Thu, 18 Nov 2010 10:58:15 GMT
Hi, this is so related that I think it is not thread hijacking.
On 11/18/2010 11:30 AM, Claus Ibsen wrote:
> > @Produce(uri = "direct:start")
> > protected ProducerTemplate template;
What is required for Camel to find and add a proxy where this annotation
is found?

I got a class that is autowired in spring using the @Service annotation
and where I use:
private IRequestLogSender requestLogSender;

Where the interface is:

public interface IRequestLogSender {
    public void notifyAnalyzer(byte[] requestDoneMessage) throws

I tried to switch the @Produce annotation to use uri instead of ref.
Also I tried adding @Autowired, but then I get No unique bean of type
[com.scanmine.scheduler.queuehandler.IRequestLogSender] is defined:
Unsatisfied dependency of type [interface

What are the requirements to get this to work?

Regards / Med vennlig hilsen
Tarjei Huse
Mobil: 920 63 413

View raw message