Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OsgiDefaultCamelContext calls init() rather than build() in ctor, preventing adding routes #567

Open
paul-mcculloch opened this issue Jan 10, 2025 · 1 comment
Assignees

Comments

@paul-mcculloch
Copy link

[Originally logged as https://issues.apache.org/jira/browse/CAMEL-20184 but closed with instructions to log here]

The call to init() was added in 3.1 (and is still present in 4.8.1) with the comment "OsgiDefaultCamelContext should init like camel-blueprint does" (apache/camel@a1c4b82)

At that time that was the case. However in 3.2 the Blueprint context was changed to use build() (bb1f504)

No equaivalent change was made to OsgiDefaultCamelContext.

The symptoms are that routes dont't get added to the context in some circumstances. In my case I was trying to use a local copy of https://github.com/apache/camel/blob/camel-2.x/components/camel-scr/src/main/java/org/apache/camel/scr/AbstractCamelRunner.java too migrate a 2.x project to 3.x.

@jbonofre jbonofre self-assigned this Jan 10, 2025
@essobedo
Copy link
Contributor

Feel free to propose a PR or at least clear steps to reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants