Monday, April 14, 2008

Using Java (GWT) with Google App Engine

Since Google App Engine (GAE) announcement many developers are wondering when/if Google App Engine will support Java. As we already know GAE currently supports only Phyton.

Do Java developers have to wait for Java support in GAE? In my opinion, no.

Google App Engine can be used to host any HTML/JavaScript based application. In that scenario we still need Python, but only as a tool for application deployment.

First screencast shows exactly that:
  • Python installation (Windows).
  • GWT application deployment on GAE.

If you are not familiar with GWT you may want to take a look at the previous screencasts.

Install Python and deploy GWT app (03:10):

Certainly, GAE is much more than just a hosting platform.
GAE provides APIs for the datastore, Google Accounts, URL fetch and email services.

Problem (or opportunity?) for Java developers is that GAE API is available only for Python.

After two afternoons of Learning Python, and copying/pasting from GAE tutorials I was able to modify previous example to use GAE URL fetch API.

Here is the screencast (02:30):

Instead of conclusion:

For web application development, more work has to be done on the client-side – especially for AJAX apps. GWT does a great job in making that easier. Almost every AJAX application needs to communicate with the server and the server-side is where scalability (GAE) is needed.

This screencast shows a JSON sample, because I expect to see many approaches (frameworks) that will enable us to wrap GAE API in JSON messages.

"Any problem in computer science can be solved with another layer of indirection" [Wheeler] so I don't think that the "Python only" is an issue.

The same argument (or architecture) can be used if you are afraid of “platform lock-in”. After decades of "architectural patterns" is it really so hard to decouple client-code from GAE services?

If you liked this post, share it with others using the links below.

View screencast...

Sunday, December 16, 2007

How to: Google Android in Eclipse

The Android platform is a software stack for mobile devices. In this two-part screencast you are going to see how to install and use the Android SDK to develop simple Android application using the Java programming language and Eclipse IDE plugin.

First screencast shows how to install SDK, configure Eclipse plugin and run sample Android applications. Second tutorial covers new project creation in Eclipse, use of Android emulator, content model, permissions and navigation model.


Install and configure the Android SDK (03:00):

Developing an Android application (02:50):

Second screencast is derived from (more advanced) example by Dan Morill:

If you liked this post, share it with others using the links below.

View screencast...

Monday, October 15, 2007

A first look at Eclipse Rich Ajax Platform (RAP)

Eclipse Rich Ajax Platform (RAP) allows developers to create Rich Internet Applications (RIA) using the OSGi standard component model. The main advantage of this technology is the ability to share the same Java code base for RCP and RIA applications.

In this two-part screencast you are going to see RAP installation process, look and feel of the RAP 1.0 Demo application and creation of the simple RAP plugin.


Installation of the RAP 1.0 using the Eclipse Update Manager (01:15):

RAP 1.0 Demo application. Creation of the "Hello world" RAP plugin (02:15):

Recommended books:

  1. Eclipse Rich Client Platform: Designing, Coding, and Packaging Java(TM) Applications
  1. Eclipse: Building Commercial-Quality Plug-ins (2nd Edition)

If you liked this post, please share it with others using the links below. Thank you.

View screencast...

Thursday, August 30, 2007

GWT RPC in Eclipse

In this screencast tutorial you are going to see how to use the Google Web Toolkit Remote Procedure Calls. This tutorial covers creation of a simple GWT RPC project in Eclipse IDE.

For basic GWT installation instructions, usage of command-line tools, and Eclipse IDE integration see "Google Web Toolkit - Getting Started Screencast".


Eclipse project generation, GWT-RPC plumbing, GWT-RPC Service interface. (02:05):

GWT-RPC Service implementation, use of the Java Servlet API, asynchronous service interface, client invocation.(04:00):

For this tutorial we have used materials from:

  1. Google Web Toolkit - Remote Procedure Calls
View screencast...

Monday, August 13, 2007

Getting Started with the Google Mashup Editor

The Google Mashup Editor is a web-based IDE in which you can edit, compile and test your mashups and applications.

This screencast tutorial shows how to use the Google Mashup Editor to rapidly create mashups and simple applications.

Total running time 07:30 minutes.


This screencast tutorial shows basic features of the Google Mashup Editor. As an example, RSS feed based application has been built (04:00):

This screencast tutorial shows how to create a simple mashup between Google Maps and Flickr. (03:30):

View screencast...

Saturday, August 4, 2007

Google Web Toolkit - Getting Started Screencast

In this screencast tutorial you are going to see how to setup and use the Google Web Toolkit (GWT). This tutorial covers installation, basic concepts, usage of command-line tools, and Eclipse IDE integration.

Total running time 08:10 minutes.


The GWT installation, sample applications, running samples in hosted mode and web mode, changing code and recompiling (03:40):

Creating an application from scratch using the CLI tools, Eclipse IDE integration (04:30):

View screencast...

Sunday, July 15, 2007

How to: JSF in Eclipse Europa (Part II)

This screencast is the last in a series of four on Eclipse Europa. Each tutorial builds upon techniques covered in previous screencast, so it would be best to see the screencasts in order:

  1. Tour around Europe: Eclipse for Java EE (Part I)
  2. Tour around Europe: Eclipse for Java EE (Part II)
  3. How to: JSF in Eclipse Europa (Part I)

In this screencast-tutorial we will assemble a JEE application by combining a JSF module and an EJB module from previous tutorials.


Creating an enterprise application project (03:30):

JSF editing and deployment (01:50):

For this tutorial we have used materials from:

  1. JSF tools subproject
  2. Eclipse IDE for Java EE Developers
and these books:
  1. Eclipse Web Tools Platform: Developing Java(TM) Web Applications
  2. Core JavaServer(TM) Faces (2nd Edition)
  3. JavaServer Faces in Action
  4. JavaServer Faces
  5. Enterprise JavaBeans 3.0 (5th Edition)
  6. Head First EJB
  7. EJB 3 in Action

For a JBoss application server installation instructions take a look at this screeencast.

If you liked this post, share it with others using the links below.

View screencast...

Tuesday, July 10, 2007

How to: JSF in Eclipse Europa (Part I)

In this screencast tutorial you'll learn how to setup and use Eclipse JavaServer Faces tools for rapid Web application development.

We will complete the following steps:

  1. Register JSF libraries
  2. Create Dynamic Web Project
  3. Add JSF Facet to the Web project
  4. Create JSP Page templates
  5. Define page navigations rules
  6. Create managed beans
  7. Edit JSF pages in the Web Page Editor
  8. Deploy and execute JSF applications

Let's get started.


Creating a JavaServer Faces Project (steps 1-3) (01:55):

Building a JSF application (steps 4-8) (05:48):

In the next screencast (Part II) we will assemble a JEE application by combining a JSF module and an EJB module from previous tutorials. Feel free to subscribe by RSS or Email.

For basic installation instructions of the Eclipse IDE for Java EE Developers see tutorials from eclipse.org site.

For this tutorial we have used materials from:

  1. JSF tools subproject
  2. Eclipse IDE for Java EE Developers
View screencast...