cancel
Showing results for 
Search instead for 
Did you mean: 

Bootstrap sequence

valery_antonov
Champ in-the-making
Champ in-the-making
Well, I`m trying to bootstrap Alfresco with minimal-context.xml, and it gets stuck because importerBootstrap bean starts before schemaBootstrap.

Really, I`m wondering how it is supposed to work - all these beans are now derived from Surf's AlfrescoLifecycleBean, so they get started to bootstrap on ContextRefreshedEvent. AFAIK, Spring doesnt define the exact order for listeners to receive events (and this is normal), and bean dependencies doesnt work here (because all beans are created at this moment) so my question is - why we decided, that beans in bootstrap-context.xml will preserve order in which they defined?
3 REPLIES 3

valery_antonov
Champ in-the-making
Champ in-the-making
Sorry, really problem exists only with Spring 3.0.5, version in Alfresco (3.0.0) is ok, but still - I dont understand, how it should manage order of bootstrapping

cranuterj
Champ in-the-making
Champ in-the-making
i think the order is managed automatically

valery_antonov
Champ in-the-making
Champ in-the-making
Yeahhh Smiley Happy I just suppose that the only automation here is Spring event. And order in which all listeners receive ContextRefreshedEvent is not defined - so, it could work, or could not. And, IMHO, the order in which beans are defined in bootstrap-context.xml is not meaningful anymore