Tabnine Logo
Embedder.checkOpenEjbHome
Code IndexAdd Tabnine to your IDE (free)

How to use
checkOpenEjbHome
method
in
org.apache.openejb.loader.Embedder

Best Java code snippets using org.apache.openejb.loader.Embedder.checkOpenEjbHome (Showing top 3 results out of 315)

origin: org.apache.geronimo.ext.openejb/openejb-loader

private Class forcefulLoad(ClassPath classPath, ClassLoader classLoader) throws Exception {
  try {
    File libsDir;
    String libsPath = SystemInstance.get().getProperty("openejb.libs");
    if (libsPath != null){
      libsDir = new File(libsPath);
    } else {
      checkOpenEjbHome(SystemInstance.get().getHome().getDirectory());
      FileUtils home = SystemInstance.get().getHome();
      libsDir = home.getDirectory("lib");
    }
    classPath.addJarsToPath(libsDir);
  } catch (Exception e2) {
    throw new Exception("Could not load OpenEJB libraries. Exception: " + e2.getClass().getName() + " " + e2.getMessage());
  }
  try {
    return classLoader.loadClass(className);
  } catch (Exception e2) {
    throw new Exception("Could not load class '"+className+"' after embedding libraries. Exception: " + e2.getClass().getName() + " " + e2.getMessage());
  }
}
origin: org.apache.tomee/openejb-loader

  libsDir = new File(libsPath);
} else {
  checkOpenEjbHome(SystemInstance.get().getHome().getDirectory());
  final FileUtils home = SystemInstance.get().getHome();
  libsDir = home.getDirectory("lib");
origin: org.apache.openejb/openejb-loader

  libsDir = new File(libsPath);
} else {
  checkOpenEjbHome(SystemInstance.get().getHome().getDirectory());
  final FileUtils home = SystemInstance.get().getHome();
  libsDir = home.getDirectory("lib");
org.apache.openejb.loaderEmbeddercheckOpenEjbHome

Popular methods of Embedder

  • forcefulLoad
  • handleError
  • load
    Loads the Class object for the className.
  • <init>
  • init
    Uses reflection to invoke the init(Properties props) method on the loaderClass field

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Permission (java.security)
    Legacy security code; do not use.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now