For nearly every web-application you need a database to store your information. Usually you’d use a relational database like Postgresql or MySQL and a mapper like Hibernate to access it in your code. And here comes the problem:

Googles doesn’t offer you a relational database but their own database-system called BigTable which you can’t access with the usual Hibernate-Mapping. And one more thing: Google doesn’t call it a database but a datastore icon wink Using the GAE datastore

In this example I’d like to show you, how to save, get, update and delete an object.

Den Rest des Beitrags lesen »

After deploying the first web-app to GAE, we now want to try to run a tapestry based application.

One problem I faced, resulted from google’s JRE Class whitelist, which lists all classes, you can use in your application. The current stable release of Tapestry uses a blacklisted XML Parser.

Therefore you have two possibilities:

  • Replace the XML-Parser
  • or just use Tapestry 5.2

I decided to update my downloaded Tapestry Libs to 5.2.

Create a project

First we have to create a new Tapestry-app with Maven. I used the integrated support of Netbeans to achieve this. In apache’s maven repository you can find a quickstart-app for Tapestry 5.2, which is ideal for testing purpose.

Now you only have to add a appengine-web.xml file and that’s it…

Last week, I published a blog post about using google’s app-engine. Afterwards I received several emails from persons, who didn’t understand the german post and requested an english version. So I’ll give it a try…

Den Rest des Beitrags lesen »

Mein eigentliches Anliegen für den Einsatz der App-Engine ist, dass ich einen Web-Server einsparen möchte. Deswegen sollte natürlich auch eine Tapestry-Anwendung in der GAE laufen.

Leider gibt es in der aktuellen Tapestry Version 5.1.0.5 noch einige Bugs, die den Einsatz verhindern. Theoretisch sollte aber die Version 5.2, welche aktuell noch im Entwicklungsstadium ist, jedoch laufen.

Das Vorgehen, um eine Tapestry Anwendung in die GAE zu laden ist wie bereits beschrieben recht einfach.

Erstellen des Projektes

Am einfachsten generiert man eine Tapestry-Anwendung mittels Maven. Ich nutze hierzu die in Netbeans integrierte Unterstützung. Im Repository gibt es eine Quickstart-Anwendung für Tapestry 5.2, welche für die Testzwecke ideal ist.

Nach dem erzeugen der Anwendung legt man nun wieder eine appengine-web.xml Datei an und schon kann man die Anwendung hochladen.

Da ich diese Woche glücklicherweise noch keine Uni und auch sonst nichts größeres zu tun habe, stand mal wieder ein Thema auf dem Plan, was mich persönlich sehr interessiert.

Google bietet ja seit einiger Zeit die Möglichkeit, Webanwendungen auf deren Servern zu hosten. Dabei wurde am Anfang nur Python unterstützt, mittlerweile gibt es aber auch eine Java-Plattform.

Den Rest des Beitrags lesen »