It looks to me like the last post by Amol explains what you are doing wrong. If you are using setter injection without auto-wiring, you must include the <property> sub-element in your bean definition.
Printable View
It looks to me like the last post by Amol explains what you are doing wrong. If you are using setter injection without auto-wiring, you must include the <property> sub-element in your bean definition.
Hi Mark,
Thanks for your reply.
Using the property element creates the problem. When the property element is used with SI, instead of going to the next defined channel, it considers the property element as a channel and it results in an error.
Say channel1 is my input channel, channel2 my output channel, myService as a service activator which has property myDAO in it. If myDAO is autowired, the code works fine.
But if setter injection is used, instead of going into the output channel it considers myDAO as the channel.
Hope you understood the problem.
Regards,
Annuk
I suggest you show us your actual configuration that exhibits the behavior that you claim, together with a DEBUG log. I suggested that in post #5 but didn't see any response.
People use setters with SI all the time so there must be some basic misunderstanding here.