CLONE -Support for <constructor-arg> element in Spring Implementation
---------------------------------------------------------------------
Key: TUSCANY-3552
URL: https://issues.apache.org/jira/browse/TUSCANY-3552
Project: Tuscany
Issue Type: Bug
Components: Java SCA Spring Implementation Extension
Affects Versions: Java-SCA-Next
Environment: Windows XP, IBM JDK 1.5
Reporter: Eddie Hsu
Assignee: ant elder
Fix For: Java-SCA-Next
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.