Announcement Announcement Module
Collapse
No announcement yet.
multiple bean Ref Context issues Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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="org.springframework.context.support.ClassPa thXmlApplicationContext">
    <constructor-arg>
    <list>
    <value>classpath*:/com/ApplicationContext-server.xml</value>
    </list>
    </constructor-arg>
    </bean>
    </beans>

    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
    {
    @Autowired
    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?

    Thx

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

    Comment


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

      Comment


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

        Comment

        Working...
        X