// Generated by the WOLips Templateengine Plug-in at May 22, 2008 5:06:36 PM import webobjectsexamples.businesslogic.ERMoviesLogic; import com.webobjects.foundation.NSBundle; import com.webobjects.foundation.NSLog; import er.extensions.appserver.ERXApplication; public class Application extends ERXApplication { public static void main(String argv[]) { ERXApplication.main(argv, Application.class); } public Application() { NSLog.out.appendln("Welcome to " + this.name() + " !"); /* ** put your initialization code in here ** */ setAllowsConcurrentRequestHandling(true); setDefaultRequestHandler(requestHandlerForKey(directActionRequestHandlerKey())); } @Override public void finishInitialization() { super.finishInitialization(); NSBundle bundle = NSBundle.bundleForClass(ERMoviesLogic.class); String file = bundle.bundlePath() + "/Resources/Movies"; System.setProperty("Movies.URL", "jdbc:h2:file:" + file); System.setProperty("Rentals.URL", "jdbc:h2:file:" + file); } }