Tuscany
  1. Tuscany
  2. TUSCANY-3552

CLONE -Support for <constructor-arg> element in Spring Implementation

    Details

    • Patch Info:
      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.

        Issue Links

          Activity

          Eddie Hsu created issue -
          Eddie Hsu made changes -
          Field Original Value New Value
          Link This issue is a clone of TUSCANY-2596 [ TUSCANY-2596 ]
          Hide
          Eddie Hsu added a comment -

          Can anyone tell me whether this issue be fixed in TUSCANY 2.0 as well ?
          When I run with TUSCANY 2.0, the same problem occurred.
          While I look into the source code, it's very similar to the issue TUSCANY-2596.

          Show
          Eddie Hsu added a comment - Can anyone tell me whether this issue be fixed in TUSCANY 2.0 as well ? When I run with TUSCANY 2.0, the same problem occurred. While I look into the source code, it's very similar to the issue TUSCANY-2596 .

            People

            • Assignee:
              ant elder
              Reporter:
              Eddie Hsu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development