You use a @Bean in spring boot to configure and setup the camel component.

See for example
https://github.com/apache/camel/tree/master/examples/camel-example-spring-boot-metrics

Or you can use that CamelContextConfiguration callback and add the
component in the before start method.

On Thu, Feb 11, 2016 at 2:09 PM, ganga_camel <[email protected]> wrote:
> Hi,
>
> I am exploring Spring Boot to write the camel routes...I started off by
> creating a Maven Project using the camel-archetype-spring-boot.
>
> The project contained 2 classes,
> 1. a class that extends from fatjarrouter, which houses the camel routes
> 2. a class by name WarInitializer which extends FatWarInitializer, which I
> understand is the starting point to trigger the class containing the routes
>
> The requirement that I am working on is to add a WebSphere MQ component to
> the Camel Context so that I will be able to use it in my routes to
> communicate to the WMQ Queues.
>
> Since there is no Main class, neither Camel-context.xml, I am left wondering
> where do I register the component into the camel context.
>
> Can help would be appreciated..
>
> Thanks,
> Ganga
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Spring-Boot-Adding-JmsComponent-for-WMQ-to-Camel-Context-tp5777593.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