camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajith Muditha Attapattu <>
Subject Loading all beans before the Camel Context starts
Date Wed, 10 Aug 2016 17:48:53 GMT
I'm using CDI and want to make sure all my beans are loaded before the
context and properly initialized.

I have them as attributes in my CamelContext class with @Inject.

However I override the start method in the context to make sure I call the
various initi methods for those beans to make sure they are loaded and
ready when the routes start.

public void start() throws Exception{

Is this advisable ? is there a better way to do this ?


Rajith Muditha Attapattu <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message