[jboss-user] [JBoss/Spring Integration] - Re: Accessing app_1's spring beans in app_2's config file

mr_belowski2 do-not-reply at jboss.com
Wed Jun 20 12:33:40 EDT 2007


Oops, I'll try the code stuff again... 

server_app.spring
 ->someClasses
 ->META-INF
   - ->jboss-spring.xml

client_app.ear
 ->webapp.war
    ->WEB-INF
      - ->applicationContext.xml

jboss-spring.xml defines some beans, and I'm trying to access these in the webapp. 

jboss-spring.xml contains 
<description>BeanFactory=(server_app)</description>
then the beans

webapp's applicationContext.xml contains
<description>BeanFactory=(webapp) ParentBeanFactory=(server_app)</description>
the some webapp specific bean definitions.

Some of the webapp bean definitions reference beans defined in the server app - e.g.
<bean id="someWebAppBean" class="..." >
  | <property name="someServerBean"><ref bean="someServerBean"/></property>



...

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

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



More information about the jboss-user mailing list