[jboss-user] [JBoss/Spring Integration] - How to reference beans defined in a spring app context in a

kevinpauli do-not-reply at jboss.com
Wed Dec 17 17:36:14 EST 2008


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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197238#4197238

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197238



More information about the jboss-user mailing list