Porting Pleso framework Demo to Netbeans and MySQL
Author: E. Ozkan
Company: OzTech IT Consultants
Date: 30-Jan-2009
1. Scope
We are planning to use GWT to develop GUIs for a database application. Logically, we have focussed
on CRUD applications. We identified a few candidates for our purpose and Pleso framework was one
of them. Since we are using Netbeans and MySQL, we decided to port the demo application to our
environment. This document summarizes our experience.
2. Environment
NetBeans IDE 6.5,
Java 1.6.0 Update 11,
MySQL Server 5.1,
GWT 1.5.3
Pleso Framework 0.2 beta
Ibatis 2.3.3.720
It is also assumed that the gwt4nb plugin has been installed into the Netbeans IDE.
3. Migration Steps
Select File->New Project …
from the Netbeans main menu.
Provide a project name “gwt_pleso_mysql_demo” and click on the Next button.
Use defaults for server and settings and click on the Next button:
Select “Google Web Toolkit” frameworks option and click on the Finish button:
Create a new Java Package under Source Packages:
Provide name of the java package: net.pleso.auth:
Copy source files from the original demo package (drag-drop from windows explorer). There is a one-
to-one mapping between folders containing source code and netbeans packages. For example, contents
of the src\net\pleso\auth folder should be copied into the net.pleso.auth package. Repeat same
procedure for the remaining packages net.pleso.demo (without folders), net.pleso.demo.server and
net.pleso.demo.client.
The files demo.html and style.css in the folder
src\net\pleso\demo\public must be copied into the Web Pages:
Edit the web.xml file in the Configuration Files and copy servlet definitions and mappings from the file
web.xml in the folder src\net\pleso\demo:
<servlet>
<servlet-name>AuthService</servlet-name>
<servlet -class>net.pleso.demo.server.auth.AuthServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AuthService</servlet-name>
<url-pattern>/auth</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>BankService</servlet-name>
<servlet-class>net.pleso.demo.server.bank.BankServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>BankService</servlet-name>
<url-pattern>/bank</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>OperationService</servlet-name>
<servlet-class>net.pleso.demo.server.operation.OperationServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>OperationService</servlet-name>
<url-pattern>/operation</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ClientService</servlet-name>
<servlet-class>net.pleso.demo.server.client.ClientServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ClientService</servlet-name>
<url-pattern>/client</url-pattern>
</servlet-mapping>
Add Required Libraries
Add libraries iBatis, Pleso framework UI & Core
and MySQL Java Connector by using Add
JAR/Folder …
1 / 15 100%
La catégorie de ce document est-elle correcte?
Merci pour votre participation!

Faire une suggestion

Avez-vous trouvé des erreurs dans linterface ou les textes ? Ou savez-vous comment améliorer linterface utilisateur de StudyLib ? Nhésitez pas à envoyer vos suggestions. Cest très important pour nous !