Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2596

Support for <constructor-arg> element in Spring Implementation

    XMLWordPrintableJSON

Details

    • Patch Available

    Description

      Currently Tuscany Spring Implementation does not seem to support the <custructor-arg/> element in the application context XML file.

      Here the issue is, Tuscany fails to identify this tag and ignores the configuration done from these tags.

      Spring uses <constructor-arg> element for the following configuration.....

      <bean id="beanRefFactory" class="org.springframework.
      context.support.ClassPathXmlApplicationContext">
      <constructor-arg><list>
      <value>Organization-spring-context.xml</value>
      </list></constructor-arg>
      </bean>

      In this instance, it tries to load the SCA aware Spring application context using ClassPathXmlApplicationContext.

      <bean id="orderService" class="com.lizjason.spring.OrderService">
      <property name="companyName">
      <value>lizjason</value>
      </property>
      <constructor-arg>
      <ref bean="orderDAO">
      </constructor-arg>
      </bean>

      In this instance, it tries to reference a bean from the constructor argument.

      Attachments

        1. TUSCANY-2596.patch
          21 kB
          Ramkumar Ramalingam

        Issue Links

          Activity

            People

              aelder ant elder
              ramkumar.rj Ramkumar Ramalingam
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: