I have one ear defined that has my persistence jar with the daos in it, along with a jboss-spring.xml that defines the daos as spring beans.
I have another ear where I have configured spring beans that have a dependency on the daos and need the daos injected into them. But I am getting errors such as:
Cannot resolve reference to bean 'systemConfigDao' while setting bean property 'systemConfigDao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'systemConfigDao' is defined; - nested throwable: (org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'agentFrwkInvoker'
I can get it to work if I put everything into the same ear, but my deployment strategy really requires separate ears.
What is the recommended way of accomplishing this?
nevermind, I discovered the solution: to specify names for the bean factory and parent bean factory.