Author: slaws
Date: Sat Jul  4 07:41:10 2009
New Revision: 791074

URL: http://svn.apache.org/viewvc?rev=791074&view=rev
Log:
Use spring to provide the component implementation as the module name suggests 
is the case. 

Added:
    
tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-context.xml
   (with props)
Modified:
    
tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-spring.composite

Added: 
tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-context.xml
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-context.xml?rev=791074&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-context.xml
 (added)
+++ 
tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-context.xml
 Sat Jul  4 07:41:10 2009
@@ -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>

Propchange: 
tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-context.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-context.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-context.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: 
tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-spring.composite
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-spring.composite?rev=791074&r1=791073&r2=791074&view=diff
==============================================================================
--- 
tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-spring.composite
 (original)
+++ 
tuscany/branches/sca-java-1.x/tutorials/store/warehouse-spring/warehouse-spring.composite
 Sat Jul  4 07:41:10 2009
@@ -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"


Reply via email to