Just a quick tip - generally with Wicket we want to supply our application with a way to choose between "Development" vs. "Deployment" mode automatically, so that we can get stack traces etc. during development and disable development features for deployment. Google App Engine sets a convenient JVM property to enable this -
class MyWicketApplication extends Application {
.....
private boolean isProd =
"Production".equalsIgnoreCase(
System.getProperty("com.google.appengine.runtime.environment"));
@Override
public String getConfigurationType() {
return (isProd ? "DEPLOYMENT" : "DEVELOPMENT");
}
}
Bam - Wickety GAE love!
Richard Nichols is an Australian software engineer with a passion for good design and simple solutions.
You could follow him on twitter or subscribe by RSS or email.
There are 2 comments.
Add a comment