Hi Guys,
suppose I have a master Spring config file called master.xml and i have child config file called child1.xml.
and i want to include child1.xml in master.xml as follows.
master.xml
Code:<beans> <beans:import resource="classpath:child1.xml" /> </beans>
So far it works fine for me. then i tried to inject spring component defined in master.xml to component defined in child1.xml. then i got an error saying
but other way around works fine. that means i was able to inject a component define in child1.xml to component defined in master.xml.Code:Error creating bean with name 'org.springframework.integration.config. etc.....
how actually these included xml files instantiate beans? is there any particular way and order?
appreciate your help.
Thanks,
Kelumt


Reply With Quote