Package com.sun.ejb

Examples of com.sun.ejb.ContainerFactory


        ejbTimerService.migrateTimers(fromOwnerId);

    }

    private BaseContainer getContainer(long containerId) {
        ContainerFactory cf = Switch.getSwitch().getContainerFactory();
        return (BaseContainer) cf.getContainer(containerId);
    }
View Full Code Here


            logger.log(Level.WARNING, "", t);
        }
    }

    private BaseContainer getContainer(long containerId) {
        ContainerFactory cf = Switch.getSwitch().getContainerFactory();
        return (BaseContainer) cf.getContainer(containerId);
    }
View Full Code Here

      
        Vector beanDescriptors = application.getEjbDescriptors();

        // create EJB containers for each EJB
        Enumeration e = beanDescriptors.elements();
        ContainerFactory cf = Switch.getSwitch().getContainerFactory();

        while (e.hasMoreElements()) {           
            EjbDescriptor nextDescriptor = (EjbDescriptor) e.nextElement();

            // detects any unique id collisions
            if ( !this.registry.isUnique( nextDescriptor.getUniqueId() ) ) {

                _logger.log(Level.SEVERE, "loader.duplicate_unique_id",
                            new Object[] {
                              String.valueOf(nextDescriptor.getUniqueId()),
                              nextDescriptor.getName()
                            });

                // unload all the ejbs
                unloadEjbs(jsr77);

                // abort loading
                return false;
            }

            try {
    EJBSecurityManager sm =
                    EJBSecurityManager.createManager(nextDescriptor,true);
                // create the bean container
                Container container = null;
                try {
        notifyEjbEvent(EjbContainerEvent.BEFORE_EJB_CONTAINER_LOAD,
      nextDescriptor);

                    container = cf.createContainer(nextDescriptor, loader,
          sm, dynamicConfigContext);

        notifyEjbEvent(EjbContainerEvent.AFTER_EJB_CONTAINER_LOAD,
      nextDescriptor);
                } catch (NameAlreadyBoundException jndiEx) {
View Full Code Here

      // Now happens thru resource adapter.
            //installer.installJMSResources();

      // Create EJB ContainerFactory
      ContainerFactory cf = new ContainerFactoryImpl();
      theSwitch.setContainerFactory(cf);

      //satisfy the dependencies between optional packages
      try {
                _logger.fine("satisfy.optionalpkg.dependency");
View Full Code Here

            // starts auto deploy monitor
            adm.start();
        }
        */
       
        ContainerFactory cf = Switch.getSwitch().getContainerFactory();
        try {
          cf.restoreEJBTimers();
        } catch (Exception ex) {
          _logger.log(Level.SEVERE,
                "ApplicationLifeCycle.onReady():: exception when calling " +
                    "restoreEJBTimers()", ex);
        }
View Full Code Here

            for (EjbDescriptor desc : ejbs) {

                // Initialize each ejb container (setup component environment, register JNDI objects, etc.)
                // Any instance instantiation , timer creation/restoration, message inflow is delayed until
                // start phase.
                ContainerFactory ejbContainerFactory = services.getService
                      (ContainerFactory.class, desc.getContainerFactoryQualifier());
                if (ejbContainerFactory == null) {
                  String errMsg = localStrings.getLocalString("invalid.container.module",
                          "Container module is not available", desc.getEjbTypeForDisplay());
                  throw new RuntimeException(errMsg);
                }

                Container container = ejbContainerFactory.createContainer
                        (desc, ejbAppClassLoader, dc);
                containers.add(container);

                if (desc instanceof EjbSessionDescriptor &&
                      ((EjbSessionDescriptor) desc).isSingleton()) {
View Full Code Here

TOP

Related Classes of com.sun.ejb.ContainerFactory

Copyright © 2018 www.massapicom. 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.