summaryrefslogtreecommitdiffstats
path: root/branches
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-07-04 07:41:10 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-07-04 07:41:10 +0000
commitbe229c39de128257c1f9695285fe828ae6f3a359 (patch)
tree429c73cd51e8456cd67976472d38a2f48920117c /branches
parentf47a37e905d1662528aa9aeb8e3d221dc8702072 (diff)
Use spring to provide the component implementation as the module name suggests is the case.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@791074 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches')
-rw-r--r--branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-context.xml29
-rw-r--r--branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-spring.composite2
2 files changed, 30 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-context.xml b/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-context.xml
new file mode 100644
index 0000000000..ed718d1403
--- /dev/null
+++ b/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-context.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<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">
+
+ <bean id="warehouse" class="services.WarehouseImpl">
+ </bean>
+
+</beans>
diff --git a/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-spring.composite b/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-spring.composite
index df14a68d1a..bfe789542d 100644
--- a/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-spring.composite
+++ b/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-spring.composite
@@ -33,7 +33,7 @@
</component>
<component name="Warehouse">
- <implementation.java class="services.WarehouseImpl"/>
+ <implementation.spring location="warehouse-context.xml"/>
<service name="Warehouse">
<t:binding.jsonrpc uri="http://localhost:8088/Warehouse"/>
<binding.jms initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory"