How to reference a bean which is being imported from another source?

keegiabiego

New Member
I have a \[code\]wireup-A.xml\[/code\] as \[code\]<bean id="xml-saver" class="com.org.blah.XMLSaver"/>\[/code\]and another \[code\]wireup-B.xml\[/code\] as\[code\]<import resource="classpath:com/A/wireup-A.xml" /> <bean id="save-xml" class="com.org.post.SaveXML"> <constructor-arg ref="xml-saver"/> </bean>\[/code\]QuestionHow can \[code\]ref="xml-saver"\[/code\] can refer to bean which is in \[code\]import resource\[/code\]?
It is saying now that \[code\]can not resolve bean xml-saver\[/code\]
 
Back
Top