EJB3 can help developers with the persistence aspects (with the Java Persistence API) or with the business aspects.
The source of an application, a Sudoku Game, that uses EasyBeans and GWT can be viewed on the Fisheye Sudoku EasyBeans site using a browser. This howto uses some of the code from this application.
A tgz package is also provided on the EasyBeans forge.
Table of Contents
- 1.1. Requirements
- 1.2. Starting with GWT
- 1.3. Calling EJB3 Beans with an RPC Service
- 1.3.1. Defining the Interface of the Service
- 1.3.2. Classes Used by the Interfaces
- 1.3.3. Implementing the Service
- 1.3.4. Calling the Remote Service from the Client Side
- 1.4. Packaging of the Application for Running on a Web Container
- 1.5. Deploying Applications for GWT/EasyBeans
- 1.6. Launching the Google Web Toolkit Tools
- 1.7. Comments
A JDK 5.0 is required to use EasyBeans.
GWT can be used without Eclipse. However, Eclipse is used in this HowTo.
This HowTo uses the EasyBeans Tomcat package. Note that it also works with the JOnAS package or any other EasyBeans package.
EasyBeans can be downloaded from the EasyBeans Web Site.
Tomcat 5.5.20 was used. It should work with other versions as well. Download this software from Tomcat site.
The Toolkit can be downloaded from the Google Web Toolkit download page. The version used in this HowTo is the 1.3 RC1 version running on Linux. This is the first open source version of GWT released with an Apache 2.0 license.