Package com.caucho.ejb.manager

Examples of com.caucho.ejb.manager.EjbContainer


  public EjbProtocolManager(EjbContainer ejbContainer) throws ConfigException
  {
    _ejbContainer = ejbContainer;
    _loader = _ejbContainer.getClassLoader();

    EjbContainer parent = ejbContainer.getParent();
    if (parent != null) {
      _localJndiPrefix = parent.getProtocolManager().getLocalJndiPrefix();
      _remoteJndiPrefix = parent.getProtocolManager().getRemoteJndiPrefix();
      _jndiPrefix = parent.getProtocolManager().getJndiPrefix();
    }
  }
View Full Code Here


    _protocolContainer.setProtocolManager(_ejbManager.getProtocolManager());
    _protocolContainer.setURLPrefix(_urlPrefix);
    _protocolContainer.setWorkPath(_workPath);

    EjbContainer manager = _ejbManager;

    for (; manager != null; manager = manager.getParent()) {
      manager.getProtocolManager().addProtocolContainer(_protocolContainer);
    }
  }
View Full Code Here

      _protocolContainer.setServerManager(_ejbManager);
      _protocolContainer.setURLPrefix(_urlPrefix);
      _protocolContainer.setWorkPath(_workPath);
   
      EjbContainer manager = _ejbManager;

      for (; manager != null; manager = manager.getParent()) {
  manager.getProtocolManager().addProtocolContainer(_protocolContainer);
      }
    }
  }
View Full Code Here

    }
  }

  public void destroy()
  {
    EjbContainer manager = _ejbManager;

    for (; manager != null; manager = manager.getParent()) {
      manager.getProtocolManager().removeProtocolContainer(_protocolContainer);
    }
  }
View Full Code Here

        && (annotatedType.isAnnotationPresent(Stateful.class)
            || annotatedType.isAnnotationPresent(Stateless.class)
            || annotatedType.isAnnotationPresent(Singleton.class)
            || annotatedType.isAnnotationPresent(MessageDriven.class)
            || annotatedType.isAnnotationPresent(JmsMessageListener.class))) {
      EjbContainer ejbContainer = EjbContainer.create();
      ejbContainer.createBean(annotatedType, null);
      event.veto();
    }
  }
View Full Code Here

    if (annotated.isAnnotationPresent(Stateful.class)
        || annotated.isAnnotationPresent(Stateless.class)
        || annotated.isAnnotationPresent(Singleton.class)
        || annotated.isAnnotationPresent(MessageDriven.class)
        || annotated.isAnnotationPresent(JmsMessageListener.class)) {
      EjbContainer ejbContainer = EjbContainer.create();
      AnnotatedType<T> annType = absBean.getAnnotatedType();

      if (annType != null) {
        ejbContainer.createBean(annType, absBean.getInjectionTarget());
       
        if (event instanceof ProcessBeanImpl)
          ((ProcessBeanImpl) event).veto();
      }
    }
View Full Code Here

    else {
      fillDefaultModules();
    }

    if (_ejbPaths.size() != 0) {
      EjbContainer ejbContainer = EjbContainer.create();

      for (Path path : _ejbPaths) {
        ejbContainer.addRoot(path);
        _loader.addJar(path);
      }

      _loader.validate();
View Full Code Here

  {
    if (_ejbPaths.contains(ejbPath))
      return;

    _ejbPaths.add(ejbPath);
    EjbContainer ejbContainer = EjbContainer.create();

    ejbContainer.addRoot(ejbPath);
  }
View Full Code Here

TOP

Related Classes of com.caucho.ejb.manager.EjbContainer

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.