Package com.sun.enterprise.deployment.runtime

Examples of com.sun.enterprise.deployment.runtime.IASEjbExtraDescriptors


           
        String modulename =
            com.sun.enterprise.util.io.FileUtils.makeFriendlyFilename(archiveuri);
        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();
View Full Code Here


       
        try {
            BeanCacheDescriptor beanCacheDes = null;
            Config cfg = null;
        
            IASEjbExtraDescriptors iased = desc.getIASEjbExtraDescriptors();
            if( iased != null) {
                beanCacheDes = iased.getBeanCache();
            }
       
            EjbContainer ejbContainer = null;
            ServerContext sc = ApplicationServer.getServerContext();
            cfg = ServerBeansFactory.getConfigBean(sc.getConfigContext());
View Full Code Here

    while (iter.hasNext()) {
        InvocationInfo info = (InvocationInfo) iter.next();
        info.checkpointEnabled = false;
        MethodDescriptor md = new MethodDescriptor(
          info.method, info.methodIntf);
        IASEjbExtraDescriptors extraDesc =
      ejbDescriptor.getIASEjbExtraDescriptors();
        if (extraDesc != null) {
      CheckpointAtEndOfMethodDescriptor cpDesc =
          extraDesc.getCheckpointAtEndOfMethodDescriptor();
      if (cpDesc != null) {
          info.checkpointEnabled =
        cpDesc.isCheckpointEnabledFor(md);
      }
        }
View Full Code Here

  }

  // CSIv2 Policy
  policies.add(new CSIv2Policy(ejbDescriptor));

  IASEjbExtraDescriptors extraDesc
      = ejbDescriptor.getIASEjbExtraDescriptors();
  String threadPoolName = extraDesc.getUseThreadPoolId();
  int threadPoolNumericID = 0;
  boolean usePassByReference = extraDesc.getPassByReference();

  if (usePassByReference) {
      policies.add(new CopyObjectPolicy(PASS_BY_REFERENCE_ID));
  }

        // Set per-request-load-balancing policy on ejb object references
        if( !home && extraDesc.hasPerRequestLoadBalancing() ) {
            policies.add( new LoadBalancingPolicy(ORBConstants.PER_REQUEST_LOAD_BALANCING));
            logger.log(Level.FINE, "Setting per-request-load-balancing policy " +
                       "for Ejb " + ejbDescriptor.getName());
        }
View Full Code Here

            theSwitch.setDescriptorFor(this, ejbDescriptor);

            // get Class objects for creating new EJBs
            ejbClass = loader.loadClass(ejbDescriptor.getEjbImplClassName());
           
            IASEjbExtraDescriptors iased = ejbDesc.getIASEjbExtraDescriptors();
            cmtTimeoutInSeconds = iased.getCmtTimeoutInSeconds();

            if( ejbDescriptor.getType().equals(EjbMessageBeanDescriptor.TYPE) )
            {
                isMessageDriven = true;
                EjbMessageBeanDescriptor mdb =
View Full Code Here

  ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();

        boolean oneFailed = false;
        boolean oneWarn = false;
        try{
            IASEjbExtraDescriptors iasEjbExtraDesc = descriptor.getIASEjbExtraDescriptors();
            MdbConnectionFactoryDescriptor mdbConnFacDesc = iasEjbExtraDesc.getMdbConnectionFactory();

            if(mdbConnFacDesc != null){
                String jndiName = mdbConnFacDesc.getJndiName();
                if(jndiName == null || jndiName.length()==0){
                    oneFailed = true;
View Full Code Here

  Result result = getInitializedResult();
  ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
       
        boolean oneFailed = false;
        try{
            IASEjbExtraDescriptors iasEjbExtraDesc = descriptor.getIASEjbExtraDescriptors();
            String commitOption = iasEjbExtraDesc.getCommitOption();
            if(commitOption!=null)
            {
                if(commitOption.length()==0){
                    addErrorDetails(result, compName);
                    result.failed(smh.getLocalString(getClass().getName()+".failed",
View Full Code Here

    public Result check(EjbDescriptor descriptor)
    {
        Result result = getInitializedResult();
      ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
       
        IASEjbExtraDescriptors ejbJar = descriptor.getIASEjbExtraDescriptors();
        if(ejbJar!=null)
        {
            try
            {
                beanPool = ejbJar.getBeanPool();
                if(beanPool!=null)
                {
                    if(descriptor instanceof EjbSessionDescriptor && ((EjbSessionDescriptor)descriptor).getSessionType().equals(EjbSessionDescriptor.STATEFUL))
                    {
                        result.addWarningDetails(smh.getLocalString
View Full Code Here

    * Get the availability-enabled for the bean from sun-ejb-jar.xml.
    * return true if not found
    */  
    public boolean getAvailabilityEnabledFromEjbDescriptor() {
        _logger.finest("in EJBServerConfigLookup>>getAvailabilityEnabledFromEjbDescriptor");
        IASEjbExtraDescriptors extraDescriptors =
            _ejbDescriptor.getIASEjbExtraDescriptors();
        if(extraDescriptors == null) {
            return true;
        }
        String availabilityEnabledString =
            extraDescriptors.getAttributeValue(extraDescriptors.AVAILABILITY_ENABLED);
       
        Boolean bool = this.toBoolean(availabilityEnabledString);
        if(bool == null) {
            return true;
        } else {
View Full Code Here

    * Get the availability-enabled for the bean from sun-ejb-jar.xml.
    * return defaultValue if not found
    */  
    public boolean getAvailabilityEnabledFromEjbDescriptor(boolean inheritedValue) {
        _logger.finest("in EJBServerConfigLookup>>getAvailabilityEnabledFromEjbDescriptor");
        IASEjbExtraDescriptors extraDescriptors =
            _ejbDescriptor.getIASEjbExtraDescriptors();
        if(extraDescriptors == null) {
            return inheritedValue;
        }
        String availabilityEnabledString =
            extraDescriptors.getAttributeValue(extraDescriptors.AVAILABILITY_ENABLED);
       
        Boolean bool = this.toBoolean(availabilityEnabledString);
        if(bool == null) {
            return inheritedValue;
        } else {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.runtime.IASEjbExtraDescriptors

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.