Hi

Yeah in this case @Bean is like the CDI @Producs annotation. To create
and produce a bean. There should also be a name or id attribute on
@Bean you can use in case you want to set the bean name there instead
of the method name.

You may want to add @Bean for the connection factory so you can
specify its init and destroy methods in case you need to init and
close it. Though spring has some convention that it may be able to
auto detect them also.

You may need to research a bit here.



On Thu, Feb 11, 2016 at 2:54 PM, ganga_camel <[email protected]> wrote:
> thanks for the response.....Posted my finding just before I saw your
> response.....
> @Bean worked for me...
>
> Thanks,
> Ganga
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Spring-Boot-Adding-JmsComponent-for-WMQ-to-Camel-Context-tp5777593p5777597.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to