Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.EjbContainer


        String ejbname = ejbDescriptor.getName();

        IASEjbExtraDescriptors iased = null;
        //Server svr = null;
        Config cfg = null;
        EjbContainer ejbContainerDesc = null;

        try {
            // instantiate container class
            if (ejbDescriptor instanceof EjbSessionDescriptor) {
                EjbSessionDescriptor sd = (EjbSessionDescriptor)ejbDescriptor;
                if ( sd.isStateless() ) {
                    container = new StatelessSessionContainer(ejbDescriptor, loader);
                } else {
                    //container = new StatefulSessionContainer(ejbDescriptor, loader);
        BaseContainerBuilder builder =
      new StatefulContainerBuilder();
        builder.buildContainer(ejbDescriptor, loader,
      dynamicConfigContext);
        container = builder.getContainer();
        //containers.put(ejbDescriptor.getUniqueId(), container);
        //builder.completeInitialization(sm);
                }
            } else if ( ejbDescriptor instanceof EjbMessageBeanDescriptor ) {
                container = new MessageBeanContainer(ejbDescriptor, loader);
    // Message-driven beans don't have a home or remote interface.
                hasHome = false;
            } else {
                if (((EjbEntityDescriptor)ejbDescriptor).getIASEjbExtraDescriptors()
                    .isIsReadOnlyBean()) {

                    EjbEntityDescriptor robDesc = (EjbEntityDescriptor) ejbDescriptor;                   
                    container = new ReadOnlyBeanContainer (ejbDescriptor, loader);
                } else
                    if ((ejbDescriptor.getLocalHomeClassName() != null) &&
                        (ejbDescriptor.getLocalHomeClassName()
                         .equals("com.sun.ejb.containers.TimerLocalHome"))) {
                        container = new TimerBeanContainer(ejbDescriptor, loader);
                    } else {
                        iased = ((EjbEntityDescriptor)ejbDescriptor).
                            getIASEjbExtraDescriptors();
                        if (iased != null) {
                            commitOption = iased.getCommitOption();     
                        }
                        if (commitOption == null) {
                            try {
                                ServerContext sc =
                                    ApplicationServer.getServerContext();

                                cfg = ServerBeansFactory.getConfigBean
                                    (sc.getConfigContext());
                            catch (ConfigException ex) {
                                _logger.log(Level.WARNING,
                                            "ejb.createContainer_exception", ex);
                            }

                            ejbContainerDesc = cfg.getEjbContainer();
                            commitOption = ejbContainerDesc.getCommitOption()
                        }
                        if (commitOption.equals("A")) {
                            _logger.log(Level.WARNING,
                                        "ejb.commit_option_A_not_supported",
                                        new Object []{ejbDescriptor.getName()}
View Full Code Here


            String cmpResourceJndiName = cmpResource.getJndiName();

            // Get the timer data source name from the domain.xml
            ServerContext sc = ApplicationServer.getServerContext();
            EjbContainer ejbc = ServerBeansFactory.
                getConfigBean(sc.getConfigContext()).getEjbContainer();
            EjbTimerService ejbt = ejbc.getEjbTimerService();
            // EjbTimerService is an optional element
            String ejbtDatasource = (ejbt != null) ?
                ejbt.getTimerDatasource() : null;

            // Override the timer datasource with the one from domain.xml
View Full Code Here

        try {
           
            // Check for property settings from domain.xml
            ServerContext sc = ApplicationServer.getServerContext();
            EjbContainer ejbc = ServerBeansFactory.
                getConfigBean(sc.getConfigContext()).getEjbContainer();
            EjbTimerService ejbt = ejbc.getEjbTimerService();

            if( ejbt != null ) {

                String valString = ejbt.getMinimumDeliveryIntervalInMillis();
                long val = (valString != null) ?
View Full Code Here

  */
  private void createPassivatedEjbPaths() {
    try {
      ConfigContext context = ConfigFactory.createConfigContext(
        mConfigFilePath);
      EjbContainer ejbContainer = ServerBeansFactory.getConfigBean(context).getEjbContainer();
      String sessionStore = ejbContainer.getSessionStore();
      if (sessionStore == null || sessionStore.length() <= 0) {
        sessionStore = getDefaultSessionStorePath();
      }
            sessionStore = resolvePath(sessionStore);
      String[] onlyFolderNames = new String[] {
View Full Code Here

  private void createHttpSessionStorePaths() {
    try {
      ConfigContext context = ConfigFactory.createConfigContext(
        mConfigFilePath);
      EjbContainer ejbContainer = ServerBeansFactory.getConfigBean(context).getEjbContainer();
      String sessionStore = ejbContainer.getSessionStore();
      if (sessionStore == null || sessionStore.length() <= 0) {
        sessionStore = getDefaultSessionStorePath();
      }
            sessionStore = resolvePath(sessionStore);
      String[] onlyFolderNames = new String[] {
View Full Code Here

    private void initProperties() {

        try {
           
            // Check for property settings from domain.xml
            EjbContainer ejbc = ejbContainerUtil.getEjbContainer();
            EjbTimerService ejbt = ejbc.getEjbTimerService();

            if( ejbt != null ) {

                String valString = ejbt.getMinimumDeliveryIntervalInMillis();
                long val = (valString != null) ?
View Full Code Here

    private void initProperties() {

        try {
           
            // Check for property settings from domain.xml
            EjbContainer ejbc = ejbContainerUtil.getEjbContainer();
            EjbTimerService ejbt = ejbc.getEjbTimerService();

            if( ejbt != null ) {

                String valString = ejbt.getMinimumDeliveryIntervalInMillis();
                long val = (valString != null) ?
View Full Code Here

    @Inject
    Configs configs;

    public void postConstruct() {
        for (Config config : configs.getConfig()) {
            EjbContainer container = config.getEjbContainer();
            if (container != null && container.getEjbTimerService() != null) {
                doUpgrade(container.getEjbTimerService());
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.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.