You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by fm...@apache.org on 2010/07/27 21:33:21 UTC

svn commit: r979821 - in /tuscany/sca-java-2.x/contrib/samples/servlet-callback: README pom.xml src/main/java/sample/CallbackServlet.java src/main/webapp/META-INF/ src/main/webapp/META-INF/MANIFEST.MF src/main/webapp/WEB-INF/lib/ src/test/

Author: fmoga
Date: Tue Jul 27 19:33:21 2010
New Revision: 979821

URL: http://svn.apache.org/viewvc?rev=979821&view=rev
Log:
- Cleaned up servlet-callback sample

Added:
    tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/main/webapp/META-INF/
    tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/main/webapp/META-INF/MANIFEST.MF
    tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/main/webapp/WEB-INF/lib/
Removed:
    tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/test/
Modified:
    tuscany/sca-java-2.x/contrib/samples/servlet-callback/README
    tuscany/sca-java-2.x/contrib/samples/servlet-callback/pom.xml
    tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/main/java/sample/CallbackServlet.java

Modified: tuscany/sca-java-2.x/contrib/samples/servlet-callback/README
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/contrib/samples/servlet-callback/README?rev=979821&r1=979820&r2=979821&view=diff
==============================================================================
--- tuscany/sca-java-2.x/contrib/samples/servlet-callback/README (original)
+++ tuscany/sca-java-2.x/contrib/samples/servlet-callback/README Tue Jul 27 19:33:21 2010
@@ -1,7 +1 @@
-The README in the <distribution-unpack-dir>/samples directory provides 
-general instructions about building and running samples. (where
-distribution-unpack-dir is the directory in which you unpacked the tuscany
-binary distribution archive). Take a look there first (noting at you read it that this sample
-is not a new style sample). 
-
-TODO - finish
\ No newline at end of file
+This sample demonstrates that the Tuscany runtime does not support callbacks for implementation.web and how it reacts in such a situation.
\ No newline at end of file

Modified: tuscany/sca-java-2.x/contrib/samples/servlet-callback/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/contrib/samples/servlet-callback/pom.xml?rev=979821&r1=979820&r2=979821&view=diff
==============================================================================
--- tuscany/sca-java-2.x/contrib/samples/servlet-callback/pom.xml (original)
+++ tuscany/sca-java-2.x/contrib/samples/servlet-callback/pom.xml Tue Jul 27 19:33:21 2010
@@ -26,12 +26,13 @@
         <relativePath>../../pom.xml</relativePath>
     </parent>
 
-    <artifactId>sample-helloworld-servlet-webapp</artifactId>
+    <groupId>org.apache.tuscany.sca</groupId>
+    <artifactId>sample-servlet-callback-webapp</artifactId>
+    <version>1.0</version>
     <packaging>war</packaging>
-    <name>Apache Tuscany SCA Sample Helloworld Servlet</name>
+    <name>servlet-callback</name>
 
     <dependencies>
-
         <dependency>
             <groupId>org.apache.tuscany.sca.shades</groupId>
             <artifactId>tuscany-base-nodep</artifactId>
@@ -62,44 +63,7 @@
     </dependencies>
 
     <build>
-       <finalName>helloworld-servlet</finalName>
-       <plugins>
-          <plugin>
-             <groupId>org.mortbay.jetty</groupId>
-             <artifactId>maven-jetty-plugin</artifactId>
-             <version>6.1.18</version>
-             <configuration>
-                <contextPath>helloworld-servlet</contextPath>
-                <stopKey>foo</stopKey>
-                <stopPort>9999</stopPort>
-             </configuration>
-             <executions>
-                <execution>
-                   <id>start-jetty</id>
-                   <phase>process-test-classes</phase>
-                   <goals>
-                       <goal>run</goal>
-                   </goals>
-                   <configuration>
-                       <scanIntervalSeconds>0</scanIntervalSeconds>
-                       <daemon>true</daemon>
-                       <connectors>
-                          <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
-                             <port>8085</port>
-                          </connector>
-                       </connectors>
-                   </configuration>
-                </execution>
-                <execution>
-                   <id>stop-jetty</id>
-                   <phase>prepare-package</phase>
-                   <goals>
-                       <goal>stop</goal>
-                   </goals>
-                </execution>
-             </executions>
-          </plugin>
-       </plugins>
+       <finalName>servlet-callback</finalName>
     </build>
 </project>
 

Modified: tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/main/java/sample/CallbackServlet.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/main/java/sample/CallbackServlet.java?rev=979821&r1=979820&r2=979821&view=diff
==============================================================================
--- tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/main/java/sample/CallbackServlet.java (original)
+++ tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/main/java/sample/CallbackServlet.java Tue Jul 27 19:33:21 2010
@@ -1,3 +1,21 @@
+/*
+ * 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;
 
 import org.oasisopen.sca.annotation.Remotable;

Added: tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/main/webapp/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/main/webapp/META-INF/MANIFEST.MF?rev=979821&view=auto
==============================================================================
--- tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/main/webapp/META-INF/MANIFEST.MF (added)
+++ tuscany/sca-java-2.x/contrib/samples/servlet-callback/src/main/webapp/META-INF/MANIFEST.MF Tue Jul 27 19:33:21 2010
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path: 
+