Package er.jquerymobile.exampleapp

Source Code of er.jquerymobile.exampleapp.Application

package er.jquerymobile.exampleapp;

import com.webobjects.foundation.NSBundle;

import er.extensions.appserver.ERXApplication;

public class Application extends ERXApplication {

  public static void main(String[] argv) {
    ERXApplication.main(argv, Application.class);
  }

  public Application() {
    /* ** put your initialization code in here ** */
    setAllowsConcurrentRequestHandling(true);   
  }

  @Override
  public void finishInitialization() {
    super.finishInitialization();

    NSBundle bundle = NSBundle.mainBundle();

    String file = bundle.bundlePath() + "/Resources/H2DB/Movies";

    System.setProperty("Movies.URL", "jdbc:h2:file:" + file);
  }

}
TOP

Related Classes of er.jquerymobile.exampleapp.Application

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.