Unless you’ve been living under a rock for the last week, you’ll probably have noticed that Google’s App Engine now lets you run Java web apps. This includes those created with Apache Wicket, although you’ll need to tweak a couple of settings to make it play nicely.
The App Engine sandbox imposes some restrictions. The most notable of these is that you cannot run background threads. Here’s how to make Wicket play ball:
- Make sure you’re running in deployment mode (this will disable the background thread that checks for modifications to your resource files, and is what you’ll want for deploying to a remote site like this anyway).
- Override newSessionStore() in your WebApplication subclass and return a new HttpSessionStore(this). (The default DiskPageStore uses a background thread and writes files, neither of which are supported in the App Engine’s sandbox.)
- Enable session support in appengine-web.xml.
App Engine for Java is in limited beta, but if you’ve been to the London Wicket Users Group at Google and would like me to wangle an account for you, please e-mail me (details on the About page).
It’s been snowy in London. I went out on Sunday and took some photos. I like this one the most. ;-)
October’s London Wicket User Group meet-up is happening on Wednesday 1st at Google’s office in Victoria. It’s shaping up to be a really good event.
We’re pleased to have Ari Zilka (who founded Terracotta) coming along. He will be giving a talk, as will Richard Wilkinson, who has interesting things to say about integrating Wicket with Guice and JPA. There will be a couple of other talks and some nice demos, too. If you’re wondering what it’s like to write real code in Wicket, don’t miss it.
If you’d like to come along, please wander over to the jWeekend site to sign up.
The latest London Wicket get-together has been featured on the Google Open Source blog. Check it out for links to photos, etc. I’ve also put up some presentations and code samples from the event, including our dynamic AJAX image-cropper component.
If you’re in England and you’re reading this over your morning coffee, fresh off your RSS feeds, it’s your last chance to sign up for today’s London Wicket User Group, held at Google, next to Victoria station.
I’m going to show you how to make a dynamic AJAX-powered image cropper, just like the one you get in Photoshop™ and similar tools. Mmmm, shiny. Ian’s going to be looking at Dojo integration. There will be plenty of time for some chat and networking, and we’ll grab a couple of beers afterwards. See you there!