General
Beanoh Google Group (http://groups.google.com/group/beanoh).
This will only load the singleton beans. Beanoh loads all bean scopes (singleton, prototype, request, session, global session).
It is fairly easy to forget to component-scan the packages that contain beans marked with '@Component'. Beanoh provides a simple way to ignore components that you do not want to load in Spring. This feature empowers developers to decide which components should be loaded.
If multiple beans have the same id, the last bean loaded will win. This loading order is not guaranteed. If the bean definitions are not exactly the same, this can create subtle bugs that are very difficult to track down.
Use a file resource.
<import resource="file:WebContent/WEB-INF/spring-ws-servlet.xml"/>
The resulting 'org.springframework.beans.factory.config.BeanDefinition' returns null when you call the 'getResourceDescription' method. This information ties the definition back to the context file in which it was defined. Bootstrap context bean definitions are excluded when Beanoh looks for duplicate bean definitions. However if 'getResourceDescription' returns null there is no way to determine if the definition came from the test bootstrap context.
Use this instead:
<bean id="datasource" parent="beanohDataSource"/>