SpringBoot does not scan CamelContext with @Component

Solution Verified - Updated -

Issue

By moving Custom RouteBuilder class to other package, SpringBoot does not scan it anymore.

before

.
└── com
    └── redhat
        └── fuse
            └── boosters
                └── cb
                    ├── Application.java
                    ├── CamelRouter.java
                    ├── Greetings.java
                    ├── GreetingsServiceImpl.java
                    ├── GreetingsService.java
                    └── IndexRootMapper.java

after

├── com
   ├── sample
   │   └── fuse
   │       ├── CamelRouter.java
   │       ├── Greetings.java
   │       ├── GreetingsServiceImpl.java
   │       ├── GreetingsService.java
   │       └── IndexRootMapper.java
   └── redhat
       └── fuse
           └── boosters
               └── cb
                   └── Application.java

Environment

  • Red Hat Fuse
    • 7.x
    • SpringBoot

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content