01 package other;
02
03 import com.webobjects.appserver.*;
04 import com.webobjects.eoaccess.*;
05 import com.webobjects.eocontrol.*;
06 import wodbupdate.*;
07
08
09 public class Application extends WOApplication {
10
11 public static void main(String argv[]) {
12 loadDatabaseDriver();
13 WOApplication.main(argv, Application.class);
14 }
15
16 protected static void loadDatabaseDriver() {
17 try {
18 Class.forName("com.frontbase.jdbc.FBJDriver");
19 } catch (Exception e) {
20 System.err.println("Unable to load driver");
21 e.printStackTrace();
22 }
23 }
24
25 public Application() {
26 new Updater((EOModel)EOUtilities.modelGroup(new EOEditingContext()).models().lastObject()).performUpdate();
27 System.out.println("Welcome to " + this.name() + "!");
28 }
29
30 }
|