diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-28 21:01:41 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-28 21:01:41 +0000 |
commit | 9dafe3e2c4d2476cb3ea7789e3f3063418340059 (patch) | |
tree | fa543a6cc40ea6ec3ad43ee7f7bf0478685db344 /sca-java-2.x/trunk/samples/helloworld-spring/src/main/resources | |
parent | 83d18d1113e87315181b6d9f1daba6146ad12cc9 (diff) |
Allow Spring WebApplicationContext to be used by Tuscany
Bring up a sample web application which demonstrates the integration between Spring and Tuscany
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@980218 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples/helloworld-spring/src/main/resources')
-rw-r--r-- | sca-java-2.x/trunk/samples/helloworld-spring/src/main/resources/helloworld-context.xml | 4 | ||||
-rw-r--r-- | sca-java-2.x/trunk/samples/helloworld-spring/src/main/resources/helloworld.composite | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/samples/helloworld-spring/src/main/resources/helloworld-context.xml b/sca-java-2.x/trunk/samples/helloworld-spring/src/main/resources/helloworld-context.xml index 89b2cfb6f5..b5fba07d66 100644 --- a/sca-java-2.x/trunk/samples/helloworld-spring/src/main/resources/helloworld-context.xml +++ b/sca-java-2.x/trunk/samples/helloworld-spring/src/main/resources/helloworld-context.xml @@ -24,7 +24,9 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/sca http://www.osoa.org/xmlns/sca/1.0/spring-sca.xsd">
- <bean id="testBean" class="sample.HelloworldImpl" lazy-init="true">
+ <bean id="testBean" class="sample.HelloworldImpl">
</bean>
+
+ <sca:reference name="dateService" type="sample.DateService"/>
</beans>
\ No newline at end of file diff --git a/sca-java-2.x/trunk/samples/helloworld-spring/src/main/resources/helloworld.composite b/sca-java-2.x/trunk/samples/helloworld-spring/src/main/resources/helloworld.composite index 33895dde25..0900c63a84 100644 --- a/sca-java-2.x/trunk/samples/helloworld-spring/src/main/resources/helloworld.composite +++ b/sca-java-2.x/trunk/samples/helloworld-spring/src/main/resources/helloworld.composite @@ -19,11 +19,14 @@ -->
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
targetNamespace="http://sample"
- xmlns:hns="http://tuscany.apache.org/implementation/bpel/example/helloworld"
name="helloworld">
<component name="HelloworldComponent">
<implementation.spring location="helloworld-context.xml"/>
+ <reference name="dateService" target="DateServiceComponent"/>
+ </component>
+
+ <component name="DateServiceComponent">
+ <implementation.java class="sample.DateServiceImpl"/>
</component>
-
</composite>
|