protected void init(final Hashtable env) throws NamingException { final ReentrantLock l = lock; l.lock(); try { if (openejb != null && openejb.isInitialized()) { return; } try { final Properties properties = new Properties(); properties.putAll(env); init(properties); } catch (final Exception e) { throw (NamingException) new NamingException("Attempted to load OpenEJB. " + e.getMessage()).initCause(e); } } finally { l.unlock(); } }
protected void init(final Hashtable env) throws NamingException { final ReentrantLock l = lock; l.lock(); try { if (openejb != null && openejb.isInitialized()) { return; } try { final Properties properties = new Properties(); properties.putAll(env); init(properties); } catch (final Exception e) { throw (NamingException) new NamingException("Attempted to load OpenEJB. " + e.getMessage()).initCause(e); } } finally { l.unlock(); } }
private void init(final Properties properties) throws Exception { if (openejb != null && openejb.isInitialized()) { return; } openejb = new OpenEJBInstance(); if (openejb.isInitialized()) { return; } bootedOpenEJB = true; SystemInstance.init(properties); OptionsLog.install(); SystemInstance.get().setProperty("openejb.embedded", "true"); openejb.init(properties); }
private void init(final Properties properties) throws Exception { if (openejb != null && openejb.isInitialized()) { return; } openejb = new OpenEJBInstance(); if (openejb.isInitialized()) { return; } bootedOpenEJB = true; SystemInstance.init(properties); OptionsLog.install(); SystemInstance.get().setProperty("openejb.embedded", "true"); openejb.init(properties); }
public void init(Properties properties) throws Exception { if (openejb != null) return; openejb = new OpenEJBInstance(); if (openejb.isInitialized()) return; bootedOpenEJB = true; SystemInstance.init(properties); OptionsLog.install(); SystemInstance.get().setProperty("openejb.embedded", "true"); openejb.init(properties); }