Db-access-in-gwt-the-missing-tutorial
4513 palavras
19 páginas
DB Access in GWT Tutorial 1Database Access in GWT – The Missing Tutorial
A programmer's guide on integrating MySQL into Google Web Toolkit Applications using the Eclipse Programming Environment
Bastian Tenbergen bastian@tenbergen.org http://www.tenbergen.org
Human-Computer Interaction MA Program
Department of Psychology
Department of Computer Science
State University of New York, College at Oswego
Oswego, NY, USA
DB Access in GWT Tutorial 2
1. Abstract.
This tutorial explains the principle method of adding MySQL support to dynamic GWT Web
Applications using asynchronous callback with Remote Procedure Call providers. Even though there are already plenty information on this topic available on the Internet, a detailed, step-by-step explanation seems to be missing so far. The mission of this tutorial is to provide such an explanation in a more detailed fashion than the GWT Examples [3] provide.
2. Table of Content.
1. Abstract
2
2. Table of Content.
2
3. Preamble.
3
4. Introduction
3
5. Assumptions
3
6. The Missing Tutorial
4
6.1 The Short Version
4
6.2 Necessary Software
5
6.3 Add MySQL to Java
5
6.4 Add MySQL configuration to GWT.
6
6.5. Clean your project.
7
6.6. Make the client side be aware of the Servlet.
7
6.7. Create serializable objects for callbacks.
8
6.8 Create the Servlet.
10
6.9. Prepare an RPC Provider in your GWT App.
12
6.10. Make Remote Procedure Calls from your GWT application.
13
7. Summary
16
8. Acknowledgements.
16
9. References
17
DB Access in GWT Tutorial 3
3. Preamble.
This tutorial is my attempt to summarize my findings in search the Internet on how to do so, along with massive findings that I discovered myself in “taming” the beast of GWT and MySQL. I neither claim this document to be correct, nor flawlessly correct. If you notice any glitches, please contact me for revisions.
This document