• No results found

To deploy the application, you will need to first create your Application ID. The

Application Identifier can be created by logging in at http://appengine.google.com with your Google Account. You will see a list of application identifiers already registered under your account (or none if you are just getting started). To create a new Application, click on the Create Application button and provide the Application Identifier as

requested. Please note this name down since you will be using it for deployment. For e.g. I have registered an application identifier named gaejexperiments.

To deploy the application, follow these steps (they should be familiar to you now): 1. Click on the Deploy Icon in the Toolbar.

2. In the Deploy dialog, provide your Email and Password. Do not click on Deploy button yet.

3. Click on the App Engine Project settings link. This will lead you to a dialog, where you need to enter your Application ID [For e.g. my Application Identifier

gaejexperiments]

4. Click on OK. You will be lead back to the previous screen, where you can click on the Deploy button. This will start deploying your application to the GAEJ cloud. You should see several messages in the Console window as the application is being deployed.

5. Finally, you should see the message “Deployment completed successfully”. This means that you application is ready to serve. Depending on whether you used index.html or dictionary.html, you should be able to access your application at the following url:

http://<YourAppId>.appspot.com/dictionary.html

or

http://<YourAppId>.appspot.com/index.html

Episode 4:Building a Dictionary App:Using the GAEJ URL Fetch Service 44

Moving forward

In this episode, we have seen how to utilize the URL Fetch Service provided by the Google App Engine. This service provides us with a convenient way to access external services that can be integrated into our application. Creating Mashup applications would be straightforward with the URL Fetch Service.

Episode 5: Upgrading to Google App Engine 1.2.6

If you have been following this blog, the version of the Google App Engine SDK was

1.2.5. Recently Google announced a release 1.2.6 of its App Engine SDK.

I think you should upgrade to the latest version since it a very cool feature that resonates with an earlier episode titled Episode 3: Using the GAEJ Email Service. That episode covered using the Email Service that allows you to send an email from your GAEJ application. The latest release 1.2.6 of the App Engine SDK for Java allows you to receive incoming emails too in your application. And that will be the topic in the next episode, so I thought it is best that I mention here that it is time to upgrade to version 1.2.6 of the App Engine SDK.

Here are a few steps and points to note to upgrade to version 1.2.6 of the SDK. I am assuming that all your development/deployment is being done via the Google App

Engine plugin for Eclipse since that is what we have used throughout this series. Here are the steps:

1. Launch the version of Eclipse that you have been using so far for the GAEJ development.

2. Go to Window –> Preferences. And then click on Google –> App Engine. You can see the version of the App Engine SDK and most likely it is 1.2.5

3. Stay in Preferences and go one level higher in the tree on the left to Google. You will see a tiny checkbox that mentions “Notify me about updates”. If you have this selected, then you should have already got a notification status in the status bar in Eclipse,

somewhere in the bottom of the screen. It looks something like this:

Clicking on this link would bring up a dialog that looks like the one shown below:

Depending on your version of Eclipse, you might see a different message and maybe the menu options might be slightly different but the process is a standard one in Eclipse to update your plugins.

Episode 5: Upgrading to Google App Engine 1.2.6 46

4. Even if you had deselected the option to Notify about updates, the process to upgrade the plugin/SDK to the latest version 1.2.6 is the same. Go to Help –> Check for Updates

in the main menu. This is for version 3.5 of Eclipse that I use (Galileo version).

This will bring up a dialog and show all your installed components/plugins in Eclipse that have a newer version (update) for you to install. A sample screenshot from my Eclipse setup is shown below:

5. Select only the Google specific upgrades. You should be able to see the version 1.2.6 of the SDK shown as above. Click on the Next button. This will confirm the updates as shown below:

Click on Next, accept all the terms as shown below and proceed with Finish appropriately.

Episode 5: Upgrading to Google App Engine 1.2.6 48

This will download, install the update to the SDK. I recommend to restart Eclipse as prompted.