Examples of destroyApplication()


Examples of org.apache.openejb.assembler.classic.Assembler.destroyApplication()

        actual.clear();

        // startup and trigger @PreDestroy
        for (AppInfo appInfo : assembler.getDeployedApplications()) {
            assembler.destroyApplication(appInfo.jarPath);
        }

        assertEquals(expected(one, two, three, four), actual);
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.Assembler.destroyApplication()

                    } finally {
                        ThreadContext.exit(previous);
                    }

                } finally {
                    assembler.destroyApplication(appInfo.path);
                }
            } finally {
                SystemInstance.reset();
            }
        }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.Assembler.destroyApplication()

        if (paths.containsKey(bundle)) {
            try {
                final Assembler assembler = SystemInstance.get().getComponent(Assembler.class);
                if (assembler != null) { // openejb stopped before bundles when shuttind down the OSGi container
                    assembler.destroyApplication(paths.remove(bundle));
                }
            } catch (IllegalStateException ise) {
                LOGGER.error("Can't undeploy bundle #{0}", bundle.getBundleId());
            } catch (UndeployException e) {
                LOGGER.error("Can't undeploy bundle #{0}", bundle.getBundleId(), e);
View Full Code Here

Examples of org.apache.openejb.assembler.classic.Assembler.destroyApplication()

      try {
        RunningApplication app = runningApps.remove(bundle);
        if(app != null) {
          app.destroy();
          Assembler assembler = (Assembler) SystemInstance.get().getComponent(Assembler.class);
          assembler.destroyApplication(app.getCtx());
        }
      } catch (OpenEJBException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } finally {
View Full Code Here

Examples of org.apache.openejb.assembler.classic.Assembler.destroyApplication()

                    } finally {
                        ThreadContext.exit(previous);
                    }

                } finally {
                    assembler.destroyApplication(appInfo.path);
                }
            } finally {
                SystemInstance.reset();
            }
        }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.Assembler.destroyApplication()

        actual.clear();

        // startup and trigger @PreDestroy
        for (AppInfo appInfo : assembler.getDeployedApplications()) {
            assembler.destroyApplication(appInfo.path);
        }

        assertEquals(expected(one, two, three, four), actual);
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.Assembler.destroyApplication()

        actual.clear();

        // startup and trigger @PreDestroy
        for (AppInfo appInfo : assembler.getDeployedApplications()) {
            assembler.destroyApplication(appInfo.path);
        }

        assertEquals(expected(one, two, three, four), actual);
    }
   
View Full Code Here

Examples of org.apache.openejb.assembler.classic.Assembler.destroyApplication()

                    } finally {
                        ThreadContext.exit(previous);
                    }

                } finally {
                    assembler.destroyApplication(appInfo.path);
                }
            } finally {
                SystemInstance.reset();
            }
        }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.Assembler.destroyApplication()

        if (paths.containsKey(bundle)) {
            try {
                Assembler assembler = SystemInstance.get().getComponent(Assembler.class);
                if (assembler != null) { // openejb stopped before bundles when shuttind down the OSGi container
                    assembler.destroyApplication(paths.remove(bundle));
                }
            } catch (IllegalStateException ise) {
                LOGGER.error("Can't undeploy bundle #{}", bundle.getBundleId());
            } catch (UndeployException e) {
                LOGGER.error("Can't undeploy bundle #{}", bundle.getBundleId(), e);
View Full Code Here

Examples of org.apache.openejb.assembler.classic.Assembler.destroyApplication()

        actual.clear();

        // startup and trigger @PreDestroy
        for (AppInfo appInfo : assembler.getDeployedApplications()) {
            assembler.destroyApplication(appInfo.path);
        }

        assertEquals(expected(one, two, three, four), actual);
    }
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.