You are viewing a plain text version of this content. The canonical link for it is here.
Posted to nuvem-commits@incubator.apache.org by jo...@apache.org on 2011/06/19 21:19:08 UTC

svn commit: r1137446 - in /incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp: pom.xml war/WEB-INF/appengine-web.xml war/WEB-INF/web.xml war/store.composite

Author: johnp
Date: Sun Jun 19 21:19:08 2011
New Revision: 1137446

URL: http://svn.apache.org/viewvc?rev=1137446&view=rev
Log:
configured sample app to make use of the XMPP Receiver in GAE

Modified:
    incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/pom.xml
    incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml
    incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/WEB-INF/web.xml
    incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/store.composite

Modified: incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/pom.xml?rev=1137446&r1=1137445&r2=1137446&view=diff
==============================================================================
--- incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/pom.xml (original)
+++ incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/pom.xml Sun Jun 19 21:19:08 2011
@@ -71,6 +71,13 @@
 
         <dependency>
             <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-web-runtime</artifactId>
+            <version>${tuscany.version}</version>
+            <scope>runtime</scope>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
             <artifactId>tuscany-binding-jsonrpc-runtime</artifactId>
             <version>${tuscany.version}</version>
             <scope>runtime</scope>

Modified: incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml
URL: http://svn.apache.org/viewvc/incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml?rev=1137446&r1=1137445&r2=1137446&view=diff
==============================================================================
--- incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml (original)
+++ incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml Sun Jun 19 21:19:08 2011
@@ -26,4 +26,8 @@
 		<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
 	</system-properties>
 
+	<inbound-services>
+    	<service>xmpp_message</service>
+  	</inbound-services>
+  	
 </appengine-web-app>
\ No newline at end of file

Modified: incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/WEB-INF/web.xml?rev=1137446&r1=1137445&r2=1137446&view=diff
==============================================================================
--- incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/WEB-INF/web.xml (original)
+++ incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/WEB-INF/web.xml Sun Jun 19 21:19:08 2011
@@ -1,28 +1,21 @@
 <?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.
--->
+<!-- * 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. -->
 
 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xmlns="http://java.sun.com/xml/ns/javaee"
-xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
+	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+	version="2.5">
 
 	<!-- Tuscany Filter -->
 	<filter>
@@ -35,6 +28,15 @@ http://java.sun.com/xml/ns/javaee/web-ap
 		<url-pattern>/*</url-pattern>
 	</filter-mapping>
 
+	<servlet>
+		<servlet-name>xmppreceiver</servlet-name>
+		<servlet-class>org.apache.nuvem.cloud.xmpp.impl.GoogleRecieverServlet</servlet-class>
+	</servlet>
+	<servlet-mapping>
+		<servlet-name>xmppreceiver</servlet-name>
+		<url-pattern>/_ah/xmpp/message/chat/</url-pattern>
+	</servlet-mapping>
+
 	<!-- Default page to serve -->
 	<welcome-file-list>
 		<welcome-file>store.html</welcome-file>

Modified: incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/store.composite
URL: http://svn.apache.org/viewvc/incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/store.composite?rev=1137446&r1=1137445&r2=1137446&view=diff
==============================================================================
--- incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/store.composite (original)
+++ incubator/nuvem/trunk/nuvem-samples/store-appengine-webapp/war/store.composite Sun Jun 19 21:19:08 2011
@@ -64,9 +64,12 @@
 		</service>
 	</component>
 
-	<component name="XMPPEndpoint">
+	<component name="XMPPComponent">
 		<implementation.java
 			class="org.apache.nuvem.cloud.xmpp.impl.GoogleXMPPEndPoint" />
+	   <service name="XMPPEndPoint">
+            <interface.java interface="org.apache.nuvem.cloud.xmpp.XMPPEndPoint" />
+        </service>
 		<reference name="presenceManager" target="PresenceComponent/PresenceManager">
 			<interface.java
 				interface="org.apache.nuvem.cloud.xmpp.presence.PresenceManager" />
@@ -84,7 +87,9 @@
 
 	<component name="ShipmentObserver">
 		<implementation.java class="services.XMPPShipmentObserver" />
-		<reference name="endpoint" target="XMPPEndpoint" />
+		<reference name="endpoint" target="XMPPComponent/XMPPEndPoint">
+            <interface.java interface="org.apache.nuvem.cloud.xmpp.XMPPEndPoint" />
+        </reference>
 	</component>
 
 	<component name="ShipmentService">
@@ -92,4 +97,11 @@
 		<reference name="observer" target="ShipmentObserver" />
 	</component>
 
+    <component name="XMPPReciever">
+        <implementation.web web-uri="/_ah/xmpp/message/chat/"/>
+        <reference name="endPoint" target="XMPPComponent/XMPPEndPoint">
+            <interface.java interface="org.apache.nuvem.cloud.xmpp.XMPPEndPoint" />
+        </reference>
+    </component>
+
 </composite>