Examples of bundlePathURL()


Examples of com.webobjects.foundation.NSBundle.bundlePathURL()

    public void finishInitialization() {
     
      if (ERXProperties.booleanForKeyWithDefault("webobjectsexamples.ERMoviesLogic.useEmbeddedH2Database", false)) {
        NSBundle bundle = NSBundle.bundleForClass(ERMoviesLogic.class);

        String file = bundle.bundlePathURL().getPath() + "/Resources/Movies";
        String h2URL = "jdbc:h2:file:" + file;
        NSLog.out.appendln("ERMoviesLogic.finishInitialization, re-writing connection url to use embedded H2 db at: " + h2URL);
        System.setProperty("Movies.URL", h2URL);
        System.setProperty("Rentals.URL", h2URL);
        System.setProperty("ERAttachment.URL", h2URL);
View Full Code Here
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.