本文整理了Java中org.apache.openejb.OpenEJB.destroy()
方法的一些代码示例,展示了OpenEJB.destroy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OpenEJB.destroy()
方法的具体详情如下:
包路径:org.apache.openejb.OpenEJB
类名称:OpenEJB
方法名:destroy
暂无
代码示例来源:origin: org.apache.tomee/openejb-server
public void stop() throws Exception {
OpenEJB.destroy();
manager.stop();
}
代码示例来源:origin: org.apache.tomee/openejb-junit
@Override
public void close() {
try {
initialContext.close();
} catch (final NamingException e) {
// ignored
}
OpenEJB.destroy();
SystemInstance.reset();
}
代码示例来源:origin: org.apache.openejb/openejb-core
private void tearDownOpenEJB() throws NamingException {
if (factory.bootedOpenEJB()) {
logger.info("Destroying container system");
factory.close();
context.close();
OpenEJB.destroy();
}
}
代码示例来源:origin: org.apache.tomee/openejb-core
private void tearDownOpenEJB() throws NamingException {
if (factory.bootedOpenEJB()) {
logger.info("Destroying container system");
factory.close();
context.close();
OpenEJB.destroy();
}
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
private void tearDownOpenEJB() throws NamingException {
if (factory.bootedOpenEJB()){
logger.info("Destroying container system");
factory.close();
context.close();
OpenEJB.destroy();
}
}
代码示例来源:origin: org.apache.openejb/openejb-tomcat-catalina
public void destroy() {
if (manager != null) {
try {
manager.stop();
} catch (ServiceException e) {
}
manager = null;
}
if (ejbServer != null) {
try {
ejbServer.stop();
} catch (ServiceException e) {
}
ejbServer = null;
}
OpenEJB.destroy();
}
代码示例来源:origin: org.apache.tomee/openejb-core
public void after() throws Exception {
try {
runAll(beforeDestroyAfterRunnables);
if (assembler != null) {
stopApplication();
}
if (serviceManager != null) {
try {
serviceManager.stop();
} catch (final RuntimeException ignored) {
// no-op
}
}
OpenEJB.destroy();
} finally {
runAll(afterRunnables);
if (originalLoader != null) {
Thread.currentThread().setContextClassLoader(originalLoader);
}
if (originalProperties != null) {
System.setProperties(originalProperties);
}
}
}
代码示例来源:origin: org.apache.openejb/arquillian-openejb-embedded-4
@Override
public void stop() throws LifecycleException {
ArquillianUtil.undeploy(this, containerArchives);
try {
if (initialContext != null) {
initialContext.close();
}
} catch (final NamingException e) {
throw new LifecycleException("can't close the OpenEJB container", e);
} finally {
OpenEJB.destroy();
}
}
代码示例来源:origin: org.apache.openejb/tomee-catalina
OpenEJB.destroy();
代码示例来源:origin: org.apache.tomee/arquillian-openejb-embedded
@Override
public void stop() throws LifecycleException {
ArquillianUtil.undeploy(this, containerArchives);
try {
if (initialContext != null) {
initialContext.close();
}
Closeables closeables = SystemInstance.get().getComponent(Closeables.class);
if (closeables != null) {
closeables.close();
}
} catch (final NamingException e) {
throw new LifecycleException("can't close the OpenEJB container", e);
} catch (final IOException e) {
// no-op: close() of classloaders, not a big deal at this moment
} finally {
OpenEJB.destroy();
}
}
代码示例来源:origin: org.apache.openejb/openejb-core
OpenEJB.destroy();
instance = null;
} finally {
代码示例来源:origin: org.apache.openejb/openejb-core
OpenEJB.destroy();
代码示例来源:origin: org.apache.tomee/tomee-catalina
OpenEJB.destroy();
代码示例来源:origin: org.apache.openejb/openejb-core
if (instance == null && OpenEJB.isInitialized()) {
try {
OpenEJB.destroy();
} catch (final Exception e) {
代码示例来源:origin: org.apache.tomee/openejb-core
if (instance == null && OpenEJB.isInitialized()) {
try {
OpenEJB.destroy();
} catch (final Exception e) {
代码示例来源:origin: org.apache.tomee/openejb-core
OpenEJB.destroy();
instance = null;
内容来源于网络,如有侵权,请联系作者删除!