Revision: 8111
Author: zun...@google.com
Date: Wed May 12 08:28:52 2010
Log: Adds remote_api support for the datastore bulk uploader to web.xml
Note that this change also requires that you add appengine-tools-api.jar to
get the servlet class.
Review at http://gwt-code-reviews.appspot.com/513801
http://code.google.com/p/google-web-toolkit/source/detail?r=8111
Modified:
/branches/2.1/bikeshed/eclipse.README
/branches/2.1/bikeshed/war/WEB-INF/web.xml
=======================================
--- /branches/2.1/bikeshed/eclipse.README Tue May 11 05:04:43 2010
+++ /branches/2.1/bikeshed/eclipse.README Wed May 12 08:28:52 2010
@@ -37,5 +37,6 @@
* Java Build Path > Libraries > Add Variable > GWT_TOOLS, Extend >
lib/apache/commons/commons-httpclient-3.1.jar
* Copy tools/redist/json/r2_20080312/json.jar to bikeshed/war/WEB_INF/lib
* Copy all jars from bikeshed/war/temp-lib to bikeshed/war/WEB-INF/lib
+* Copy appengine-tools-api.jar from your appengine sdk to
bikeshed/war/WEB-INF/lib
* Right click on the bikeshed project and choose Run as > Web Application.
Choose from the various .html files
=======================================
--- /branches/2.1/bikeshed/war/WEB-INF/web.xml Tue May 11 21:32:44 2010
+++ /branches/2.1/bikeshed/war/WEB-INF/web.xml Wed May 12 08:28:52 2010
@@ -89,6 +89,26 @@
</filter-mapping>
-->
+ <!-- Enable remote API on Java (for datastore bulkloader). -->
+ <!-- You also need to add appengine-tools-api.jar to war/WEB-INF/lib -->
+ <servlet>
+ <servlet-name>remoteapi</servlet-name>
+
<servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>remoteapi</servlet-name>
+ <url-pattern>/remote_api</url-pattern>
+ </servlet-mapping>
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>remoteapi</web-resource-name>
+ <url-pattern>/remote_api</url-pattern>
+ </web-resource-collection>
+ <auth-constraint>
+ <role-name>admin</role-name>
+ </auth-constraint>
+ </security-constraint>
+
<!-- Require login. -->
<!--
<security-constraint>
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors