summaryrefslogtreecommitdiffstats
path: root/sandbox/lresende/sca/samples/organization-das/src/main/resources
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-08-11 03:32:25 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-08-11 03:32:25 +0000
commit9fe9a0d09adb6c32391580e66f36c528ae10abe0 (patch)
tree9b0e758d977a427847a2d50f91296d27bf0a7afd /sandbox/lresende/sca/samples/organization-das/src/main/resources
parent2a25d97953be52451c073f8abc22034283c6d8c9 (diff)
Adding spring layer to organization sample application
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@684626 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/lresende/sca/samples/organization-das/src/main/resources')
-rw-r--r--sandbox/lresende/sca/samples/organization-das/src/main/resources/organization-spring-context.xml20
-rw-r--r--sandbox/lresende/sca/samples/organization-das/src/main/resources/organization.composite12
2 files changed, 26 insertions, 6 deletions
diff --git a/sandbox/lresende/sca/samples/organization-das/src/main/resources/organization-spring-context.xml b/sandbox/lresende/sca/samples/organization-das/src/main/resources/organization-spring-context.xml
new file mode 100644
index 0000000000..c814afe28b
--- /dev/null
+++ b/sandbox/lresende/sca/samples/organization-das/src/main/resources/organization-spring-context.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:sca="http://www.springframework.org/schema/sca"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/sca http://www.springframework.org/schema/sca/spring-sca.xsd">
+
+ <sca:service name="OrganizationService"
+ type="organization.services.OrganizationService" target="OrganizationServiceBean"/>
+
+ <bean id="OrganizationServiceBean" class="organization.services.OrganizationServiceImpl">
+ <property name="organizationDataService" ref="OrganizationDataServiceBean"/>
+ </bean>
+
+ <bean id="OrganizationDataServiceBean" class="organization.das.OrganizationDataServiceImpl">
+
+ </bean>
+</beans>
diff --git a/sandbox/lresende/sca/samples/organization-das/src/main/resources/organization.composite b/sandbox/lresende/sca/samples/organization-das/src/main/resources/organization.composite
index e19441aa5d..0113ccf8a0 100644
--- a/sandbox/lresende/sca/samples/organization-das/src/main/resources/organization.composite
+++ b/sandbox/lresende/sca/samples/organization-das/src/main/resources/organization.composite
@@ -5,17 +5,17 @@
xmlns:soa="http://org.soa.services"
name="Organization-Service-Composite">
- <component name="OrganizationServiceComponent">
- <implementation.spring location="Organization-spring-context.xml"/>
- <service name="OrganizationService"/>
- </component>
-
<service name="OrganizationService" promote="OrganizationServiceComponent/OrganizationService">
<binding.ws/>
</service>
+
+ <component name="OrganizationServiceComponent">
+ <implementation.spring location="organization-spring-context.xml"/>
+ <service name="OrganizationService"/>
+ </component>
<component name="OrganizationDataServiceComponent">
- <implementation.spring location="Organization-spring-context.xml"/>
+ <implementation.spring location="organization-spring-context.xml"/>
</component>