@Override public void close() { try { initialContext.close(); } catch (final NamingException e) { // ignored } OpenEJB.destroy(); SystemInstance.reset(); }
public static void destroy() { final Assembler assembler = SystemInstance.get().getComponent(Assembler.class); if (assembler != null) { assembler.destroy(); } else { SystemInstance.reset(); } instance = null; }
public static void destroy() { Assembler assembler = SystemInstance.get().getComponent(Assembler.class); assembler.destroy(); SystemInstance.reset(); instance = null; }
public static synchronized void destroy() { final Assembler assembler = SystemInstance.get().getComponent(Assembler.class); if (assembler != null) { assembler.destroy(); } else { SystemInstance.reset(); } ConnectionFactoryWrapper.closeConnections(); instance = null; }
SystemInstance.reset();
SystemInstance.reset(); } finally { l.unlock();
SystemInstance.get().removeComponent(EjbResolver.class); SystemInstance.get().fireEvent(new AssemblerDestroyed()); SystemInstance.reset(); } finally { l.unlock();
properties.putAll(map); SystemInstance.reset(); SystemInstance.init(properties); SystemInstance.get().setProperty("openejb.embedded", "true");
SystemInstance.reset();
properties.putAll(map); SystemInstance.reset(); SystemInstance.init(properties); SystemInstance.get().setProperty("openejb.embedded", "true");
SystemInstance.get().removeComponent(TransactionSynchronizationRegistry.class); SystemInstance.get().removeComponent(EjbResolver.class); SystemInstance.reset();