Author: jmarino
Date: Fri Sep  8 00:21:20 2006
New Revision: 441408

URL: http://svn.apache.org/viewvc?view=rev&rev=441408
Log:
add Spring server example so the Spring samples now demonstrate wiring remote 
application contexts

Added:
    incubator/tuscany/java/samples/sca/spring/server/   (with props)
    incubator/tuscany/java/samples/sca/spring/server/pom.xml   (with props)
    incubator/tuscany/java/samples/sca/spring/server/src/
    incubator/tuscany/java/samples/sca/spring/server/src/main/
    incubator/tuscany/java/samples/sca/spring/server/src/main/java/
    incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/
    
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBean.java
   (with props)
    
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBeanImpl.java
   (with props)
    
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponent.java
   (with props)
    
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponentImpl.java
   (with props)
    incubator/tuscany/java/samples/sca/spring/server/src/main/resources/
    incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/
    incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/
    
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/sca/
    
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/sca/default.scdl
   (with props)
    
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/tuscany.extensions/
    
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/tuscany.extensions/spring.system.scdl
   (with props)
    
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/tuscany.extensions/test.binding.system.scdl
    incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/
    
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/classes/
    
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/classes/application-context.xml
   (with props)
    
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/web.xml
   (with props)
    incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/test.jsp   
(with props)
    incubator/tuscany/java/samples/sca/spring/server/src/test/
    incubator/tuscany/java/samples/sca/spring/server/src/test/java/
Modified:
    
incubator/tuscany/java/samples/sca/spring/client/src/main/java/sample/TestComponent.java
    
incubator/tuscany/java/samples/sca/spring/client/src/main/java/sample/TestComponentImpl.java
    
incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/META-INF/sca/default.scdl
    
incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/META-INF/tuscany.extensions/test.binding.system.scdl
    incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/test.jsp

Modified: 
incubator/tuscany/java/samples/sca/spring/client/src/main/java/sample/TestComponent.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/client/src/main/java/sample/TestComponent.java?view=diff&rev=441408&r1=441407&r2=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/client/src/main/java/sample/TestComponent.java
 (original)
+++ 
incubator/tuscany/java/samples/sca/spring/client/src/main/java/sample/TestComponent.java
 Fri Sep  8 00:21:20 2006
@@ -4,4 +4,7 @@
  * @version $Rev$ $Date$
  */
 public interface TestComponent {
+
+    String echo(String msg);
+
 }

Modified: 
incubator/tuscany/java/samples/sca/spring/client/src/main/java/sample/TestComponentImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/client/src/main/java/sample/TestComponentImpl.java?view=diff&rev=441408&r1=441407&r2=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/client/src/main/java/sample/TestComponentImpl.java
 (original)
+++ 
incubator/tuscany/java/samples/sca/spring/client/src/main/java/sample/TestComponentImpl.java
 Fri Sep  8 00:21:20 2006
@@ -25,4 +25,7 @@
 public class TestComponentImpl implements TestComponent {
 
 
+    public String echo(String msg) {
+        return msg;
+    }
 }

Modified: 
incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/META-INF/sca/default.scdl
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/META-INF/sca/default.scdl?view=diff&rev=441408&r1=441407&r2=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/META-INF/sca/default.scdl
 (original)
+++ 
incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/META-INF/sca/default.scdl
 Fri Sep  8 00:21:20 2006
@@ -22,7 +22,7 @@
         <implementation.spring location="application-context.xml">
             <reference name="testReference">
                 <interface.java interface="sample.TestComponent"/>
-                <binding.test/>
+                <binding.socket host="localhost" port="8888"/>
             </reference>
         </implementation.spring>
     </component>

Modified: 
incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/META-INF/tuscany.extensions/test.binding.system.scdl
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/META-INF/tuscany.extensions/test.binding.system.scdl?view=diff&rev=441408&r1=441407&r2=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/META-INF/tuscany.extensions/test.binding.system.scdl
 (original)
+++ 
incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/META-INF/tuscany.extensions/test.binding.system.scdl
 Fri Sep  8 00:21:20 2006
@@ -33,4 +33,12 @@
         <system:implementation.system 
class="org.apache.tuscany.test.binding.TestBindingBuilder"/>
     </component>
 
+    <component name="SocketBindingLoader">
+        <system:implementation.system 
class="org.apache.tuscany.test.binding.TestSocketBindingLoader"/>
+    </component>
+
+    <component name="SocketBindingBuilder">
+        <system:implementation.system 
class="org.apache.tuscany.test.binding.TestSocketBindingBuilder"/>
+    </component>
+
 </composite>

Modified: 
incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/test.jsp
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/test.jsp?view=diff&rev=441408&r1=441407&r2=441408
==============================================================================
--- incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/test.jsp 
(original)
+++ incubator/tuscany/java/samples/sca/spring/client/src/main/webapp/test.jsp 
Fri Sep  8 00:21:20 2006
@@ -20,6 +20,6 @@
 
     System.out.println("component: " + context.locateService(TestBean.class, 
"ScaComponent"));
 
-    System.out.println("injected component: " + testBean.getTestComponent());
+    System.out.println("injected component: " + 
testBean.getTestComponent().echo("hello"));
 %>
 </html>

Propchange: incubator/tuscany/java/samples/sca/spring/server/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Sep  8 00:21:20 2006
@@ -0,0 +1,14 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
+

Added: incubator/tuscany/java/samples/sca/spring/server/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/server/pom.xml?view=auto&rev=441408
==============================================================================
--- incubator/tuscany/java/samples/sca/spring/server/pom.xml (added)
+++ incubator/tuscany/java/samples/sca/spring/server/pom.xml Fri Sep  8 
00:21:20 2006
@@ -0,0 +1,91 @@
+<?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.    
+-->
+<project>
+    <parent>
+        <groupId>org.apache.tuscany.samples.sca.spring</groupId>
+        <artifactId>tuscany-samples-sca-spring</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>spring-server</artifactId>
+    <packaging>war</packaging>
+    <name>Tuscany Spring Sample Server Web Application</name>
+    <description>Demonstrates using Spring with Tuscany as a 
server.</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.osoa</groupId>
+            <artifactId>sca-api-r0.95</artifactId>
+            <version>1.0-SNAPSHOT</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany</groupId>
+            <artifactId>core</artifactId>
+            <version>${pom.version}</version>
+            <scope>runtime</scope>
+            <!-- runtime is need for webapp integration to include jar -->
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany.runtime</groupId>
+            <artifactId>webapp</artifactId>
+            <version>${pom.version}</version>
+            <scope>runtime</scope>
+            <!-- runtime is need for webapp integration to include jar -->
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany.runtime</groupId>
+            <artifactId>webapp-host</artifactId>
+            <version>${pom.version}</version>
+            <scope>runtime</scope>
+            <!-- runtime is need for webapp integration to include jar -->
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany.containers</groupId>
+            <artifactId>spring</artifactId>
+            <version>${pom.version}</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany</groupId>
+            <artifactId>test</artifactId>
+            <version>${sca.version}</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring</artifactId>
+            <version>2.0-rc3</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>3.8.1</version>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+</project>

Propchange: incubator/tuscany/java/samples/sca/spring/server/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/spring/server/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBean.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBean.java?view=auto&rev=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBean.java
 (added)
+++ 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBean.java
 Fri Sep  8 00:21:20 2006
@@ -0,0 +1,8 @@
+package sample;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface TestBean {
+  TestComponent getTestComponent();
+}

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBean.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBeanImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBeanImpl.java?view=auto&rev=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBeanImpl.java
 (added)
+++ 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBeanImpl.java
 Fri Sep  8 00:21:20 2006
@@ -0,0 +1,35 @@
+/*
+ * 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.
+ */
+package sample;
+
+/**
+ * @version $Rev$ $Date$
+ */
+
+public class TestBeanImpl implements TestBean {
+  private TestComponent testComponent;
+
+  public TestComponent getTestComponent() {
+    return testComponent;
+  }
+
+  public void setTestComponent(TestComponent testComponent) {
+    this.testComponent = testComponent;
+  }
+}

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBeanImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBeanImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestBeanImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponent.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponent.java?view=auto&rev=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponent.java
 (added)
+++ 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponent.java
 Fri Sep  8 00:21:20 2006
@@ -0,0 +1,10 @@
+package sample;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface TestComponent {
+
+    String echo(String msg);
+
+}

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponent.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponent.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponentImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponentImpl.java?view=auto&rev=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponentImpl.java
 (added)
+++ 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponentImpl.java
 Fri Sep  8 00:21:20 2006
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ */
+package sample;
+
+/**
+ * @version $Rev$ $Date$
+ */
+
+public class TestComponentImpl implements TestComponent {
+
+
+    public String echo(String msg) {
+        return msg;
+    }
+}

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponentImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponentImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/java/sample/TestComponentImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/sca/default.scdl
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/sca/default.scdl?view=auto&rev=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/sca/default.scdl
 (added)
+++ 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/sca/default.scdl
 Fri Sep  8 00:21:20 2006
@@ -0,0 +1,32 @@
+<?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.    
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"; name="SpringSample">
+
+    <component name="SpringSample">
+        <implementation.spring location="application-context.xml">
+            <service name="SpringBean">
+                <interface.java interface="sample.TestComponent"/>
+                <binding.socket port="8888"/>
+                <reference>testBean</reference>
+            </service>
+
+        </implementation.spring>
+    </component>
+</composite>

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/sca/default.scdl
------------------------------------------------------------------------------
    svn:executable = *

Added: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/tuscany.extensions/spring.system.scdl
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/tuscany.extensions/spring.system.scdl?view=auto&rev=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/tuscany.extensions/spring.system.scdl
 (added)
+++ 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/tuscany.extensions/spring.system.scdl
 Fri Sep  8 00:21:20 2006
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ *  Copyright (c) 2006 The Apache Software Foundation or its licensors, as 
applicable.
+ *
+ *  Licensed 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.
+ -->
+<!--
+    Spring implementation extension configuration for the launcher environment.
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
+           xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT";
+
+           name="org.apache.tuscany.launcher.SpringImplementation">
+
+    <component name="spring.implementationLoader">
+        <system:implementation.system 
class="org.apache.tuscany.container.spring.impl.SpringImplementationLoader"/>
+    </component>
+
+    <component name="spring.componentTypeLoader">
+        <system:implementation.system 
class="org.apache.tuscany.container.spring.impl.SpringComponentTypeLoader"/>
+    </component>
+
+    <component name="spring.componentBuilder">
+        <system:implementation.system 
class="org.apache.tuscany.container.spring.impl.SpringCompositeBuilder"/>
+    </component>
+
+</composite>
\ No newline at end of file

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/tuscany.extensions/spring.system.scdl
------------------------------------------------------------------------------
    svn:executable = *

Added: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/tuscany.extensions/test.binding.system.scdl
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/tuscany.extensions/test.binding.system.scdl?view=auto&rev=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/tuscany.extensions/test.binding.system.scdl
 (added)
+++ 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/META-INF/tuscany.extensions/test.binding.system.scdl
 Fri Sep  8 00:21:20 2006
@@ -0,0 +1,44 @@
+<?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.    
+-->
+<!--
+    JavaScript configuration for the launcher environment.
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
+           xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT";
+
+           name="org.apache.tuscany.test.TestBindingImplementation">
+
+    <component name="BindingLoader">
+        <system:implementation.system 
class="org.apache.tuscany.test.binding.TestBindingLoader"/>
+    </component>
+
+    <component name="BindingBuilder">
+        <system:implementation.system 
class="org.apache.tuscany.test.binding.TestBindingBuilder"/>
+    </component>
+
+    <component name="SocketBindingLoader">
+        <system:implementation.system 
class="org.apache.tuscany.test.binding.TestSocketBindingLoader"/>
+    </component>
+
+    <component name="SocketBindingBuilder">
+        <system:implementation.system 
class="org.apache.tuscany.test.binding.TestSocketBindingBuilder"/>
+    </component>
+
+</composite>

Added: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/classes/application-context.xml
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/classes/application-context.xml?view=auto&rev=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/classes/application-context.xml
 (added)
+++ 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/classes/application-context.xml
 Fri Sep  8 00:21:20 2006
@@ -0,0 +1,15 @@
+<?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://bjlinux15/tuscany/spring-sca.xsd";>
+
+
+    <bean id="testBean" class="sample.TestComponentImpl">
+    </bean>
+
+  <!--<sca:reference name="testReference" type="sample.TestComponent"/>   -->
+
+</beans>

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/classes/application-context.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/classes/application-context.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/web.xml?view=auto&rev=441408
==============================================================================
--- 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/web.xml
 (added)
+++ 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/web.xml
 Fri Sep  8 00:21:20 2006
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
+<web-app>
+
+    <display-name>Tuscany Spring Sample</display-name>
+
+    <context-param>
+        <param-name>systemScdlPath</param-name>
+        <param-value>/META-INF/sca/webapp.system.scdl</param-value>
+    </context-param>
+
+    <context-param>
+        <param-name>applicationScdlPath</param-name>
+        <param-value>/META-INF/sca/default.scdl</param-value>
+    </context-param>
+
+    <context-param>
+        <param-name>currentCompositePath</param-name>
+        <param-value>SpringSample</param-value>
+    </context-param>
+
+    <filter>
+        <filter-name>TuscanyFilter</filter-name>
+        
<filter-class>org.apache.tuscany.runtime.webapp.TuscanyFilter</filter-class>
+    </filter>
+
+    <filter-mapping>
+        <filter-name>TuscanyFilter</filter-name>
+        <url-pattern>*</url-pattern>
+    </filter-mapping>
+
+    <listener>
+        
<listener-class>org.apache.tuscany.runtime.webapp.TuscanyContextListener</listener-class>
+    </listener>
+
+    <listener>
+        
<listener-class>org.apache.tuscany.runtime.webapp.TuscanySessionListener</listener-class>
+    </listener>
+
+    <servlet>
+        <servlet-name>TuscanyServlet</servlet-name>
+        <display-name>Tuscany Servlet</display-name>
+        
<servlet-class>org.apache.tuscany.runtime.webapp.TuscanyServlet</servlet-class>
+    </servlet>
+
+    <servlet-mapping>
+        <servlet-name>TuscanyServlet</servlet-name>
+        <url-pattern>/services/*</url-pattern>
+    </servlet-mapping>
+
+    
+</web-app>
\ No newline at end of file

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/test.jsp
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/test.jsp?view=auto&rev=441408
==============================================================================
--- incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/test.jsp 
(added)
+++ incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/test.jsp 
Fri Sep  8 00:21:20 2006
@@ -0,0 +1,15 @@
+<%@ page import="org.osoa.sca.CompositeContext" %>
+<%@ page import="org.osoa.sca.CurrentCompositeContext" %>
+<%@ page import="sample.TestBean" %>
+<%--
+
+Demonstrates accessing the current application context
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+<head><title>Tuscany Spring sample</title></head>
+
+<body>A Sample Spring application</body>
+
+Spring server application
+</html>
\ No newline at end of file

Propchange: 
incubator/tuscany/java/samples/sca/spring/server/src/main/webapp/test.jsp
------------------------------------------------------------------------------
    svn:executable = *



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to