1 Reply Latest reply on Dec 17, 2008 9:14 PM by kevinpauli

    How to reference beans defined in a spring app context in a

    kevinpauli

      Hello!

      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?