Announcement Announcement Module
No announcement yet.
multiple bean Ref Context issues Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • multiple bean Ref Context issues

    Here is our set up.

    We have a ear which has a web and ejb . The ejbs get the daos injected into the services by using spring. We use beanRefContext.xml which defines a bean and has a list of other beans .Its configuration is as follows
    <bean id="serverBeanFactory" class=" thXmlApplicationContext">

    and we have the SpringBeanAutowiringInterceptor defined in the services by means of which we are autowiring the DAOs.
    @Interceptors(SpringBeanAutowiringInterceptor.clas s)
    public class ApplicationImpl extends BaseService implements ApplicationIF
    private ApplicationDAO applicationDAO;

    There is also one other beanRefContext.xml which is defined in our web layer and which has its own stuff .

    What we would like is for the beanRefContext.xml of the server to get loaded first always before the beanRefContext.xml of the web ? Is there a way to control the order of these beanRefContext.xml ? What we found is that its not consistent . How do we control this?


  • #2
    We are running on jboss 5.1.0.GA if that helps


    • #3
      День пропал не зря...


      • #4
        Can you translate to english pls.. ?