I was thinking more about this last night on the ride home and thought it would be silly to use namespaces within classes when requesting beans... What's IoC for if not to avoid tying you to things like that.
Rod mentioned in his post and in his book, "J2EE Development without EJB" on page 177 that:
While there is an example given of a context instance being loaded from a single xml file, I would have loved to have seen an example of more than one file being used to load a context.Originally Posted by Rod Johnson and Juergen Hoeller in 'J2EE Development without EJB'
ClassPathXmlApplicationContext's constructor with a single String was used. However, there are several constructors, and some allow you to supply a String[] of resource xmls.
:arrow: ClassPathXmlApplicationContext


Reply With Quote