This content has been marked as final.
Show 2 replies
-
1. Re: Trying to get ApplicationContext on Bundle Startup
davsclaus Feb 2, 2015 4:30 AM (in response to niteshjain132)Maybe a better way is to lookup the CamelContext in the OSGi service registry. Then you will only get that entity when its ready.
Camel exports the CamelContext in the OSGi service registry. You can see that from the shell with the ls command
ls <bundle id>
Where bundle id is the id of your Camel app bundle.
-
2. Re: Trying to get ApplicationContext on Bundle Startup
niteshjain132 Feb 3, 2015 1:14 AM (in response to davsclaus)Thanks Claus,
Implementing ApplicationContextAware helped me to get the CamelContext.