Results 1 to 4 of 4

Thread: multiple bean Ref Context issues

  1. #1
    Join Date
    Apr 2012
    Posts
    16

    Default 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. #2
    Join Date
    Apr 2012
    Posts
    16

    Default

    We are running on jboss 5.1.0.GA if that helps

  3. #3
    Join Date
    May 2012
    Location
    Гармазек
    Posts
    2

    Default

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

  4. #4
    Join Date
    Apr 2012
    Posts
    16

    Default

    Can you translate to english pls.. ?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •