views:

620

answers:

3

To learn GWT and Google AppEngine (GAE) I'm trying to create a simple application using GWT with two or three objects (entities). In this application one object, let's say Student, encapsulates ArrayList of other objects, say Classes and Books. Then it creates list of Students and sends it to Java code on GAE and stores it to the data store.

Question: is it possible to do this kind of stuff using GWT + GAE + Google DataStore? Are there any examples/tutorials of using all these technologies at once?

Is it even worth it to use this tech. stack at this point?

A: 

You might want to check out Gilead and it's Adapter for Google AppEngine. There's even a sample project. I've gotten it working on my local machine in Eclipse, but I keep getting errors when it's deployed to GAE.

KevMo
I tried it, spend two days figuring out that framework/library but had no luck :(. But thank you tho
Maksim
+2  A: 

I would suggest the following:

  1. Run through the GWT StockWatcher Tutorial. If you haven't already, this will help you with the basics of GWT.
  2. Continue with the GWT and App Engine Tutorial. This will show you how to modify the StockWatcher code to work with the Google App Engine and store simple data types in Google DataStore.
  3. Finally, follow the steps I outlined in this StackOverflow answer. This will show you how to modify StockWatcher code further to return an ArrayList of Stock objects rather than just a simple array of strings.

The only part that the above tutorials won't help you with is storing an ArrayList of objects within an persistable object in Google DataStore. I'm not sure if that is actually possible; you might have to store each of the object types separately and then programmatically retrieve Classes and Books related to a specific Student using GQL.

Templar
+1  A: 

There are many examples by google here

You can learn more about GWT + GAE at this and this

Rahul Garg