Package org.jboss.ejb3.service

Examples of org.jboss.ejb3.service.ServiceContainer


/*  425 */           container.setJaccContextId(getJaccContextId());
/*  426 */           containers.add(container);
/*      */         }
/*  428 */         else if (this.ejbType == Ejb3AnnotationHandler.EJB_TYPE.SERVICE)
/*      */         {
/*  430 */           ServiceContainer container = getServiceContainer(ejbIndex);
/*  431 */           container.setJaccContextId(getJaccContextId());
/*  432 */           containers.add(container);
/*      */         }
/*  434 */         else if (this.ejbType == Ejb3AnnotationHandler.EJB_TYPE.CONSUMER)
/*      */         {
/*  436 */           ConsumerContainer container = getConsumerContainer(ejbIndex);
/*  437 */           container.setJaccContextId(getJaccContextId());
/*  438 */           containers.add(container);
/*      */         }
/*  440 */         log.debug("found EJB3: ejbName=" + ejbName + ", class=" + this.className + ", type=" + this.ejbType);
/*      */       }
/*      */     }
View Full Code Here


/*      */   {
/*  516 */     String ejbName = (String)this.ejbNames.get(ejbIndex);
/*      */
/*  518 */     JBossServiceBeanMetaData service = (JBossServiceBeanMetaData)this.ejbs.get(ejbIndex);
/*      */
/*  520 */     ServiceContainer container = super.getServiceContainer(ejbIndex);
/*  521 */     ServiceImpl annotation = new ServiceImpl((Service)container.resolveAnnotation(Service.class));
/*      */
/*  524 */     container.setAssemblyDescriptor(this.dd.getAssemblyDescriptor());
/*      */
/*  526 */     if ((service != null) && (!isAnnotatedBean()))
/*      */     {
/*  528 */       if (service.getObjectName() != null)
/*  529 */         annotation.setObjectName(service.getObjectName());
View Full Code Here

/* 157 */         container.setJaccContextId(getJaccContextId());
/* 158 */         containers.add(container);
/*     */       }
/* 160 */       else if (this.ejbType == EJB_TYPE.SERVICE)
/*     */       {
/* 162 */         ServiceContainer container = getServiceContainer(ejbIndex);
/* 163 */         container.setJaccContextId(getJaccContextId());
/* 164 */         containers.add(container);
/*     */       }
/* 166 */       else if (this.ejbType == EJB_TYPE.CONSUMER)
/*     */       {
/* 168 */         ConsumerContainer container = getConsumerContainer(ejbIndex);
/* 169 */         container.setJaccContextId(getJaccContextId());
/* 170 */         containers.add(container);
/*     */       }
/* 172 */       log.debug("found EJB3: ejbName=" + ejbName + ", class=" + this.className + ", type=" + this.ejbType);
/*     */     }
/*     */
View Full Code Here

/*     */
/* 200 */     if (domain == null) {
/* 201 */       throw new RuntimeException("No container configured with name '" + containerName + "''");
/*     */     }
/*     */
/* 204 */     return new ServiceContainer(this.deployment.getMbeanServer(), this.di.getClassLoader(), this.className, (String)this.ejbNames.get(ejbIndex), domain.getManager(), this.ctxProperties, this.di.getInterceptorInfoRepository(), this.deployment);
/*     */   }
View Full Code Here

            container.setJaccContextId(getJaccContextId());
            containers.add(container);
         }
         else if (ejbType == EJB_TYPE.SERVICE)
         {
            ServiceContainer container = getServiceContainer(ejbIndex, getEnterpriseBeanMetaData(deployment, ejbName, JBossServiceBeanMetaData.class));
            container.setJaccContextId(getJaccContextId());
            containers.add(container);
         }
         else if (ejbType == EJB_TYPE.CONSUMER)
         {
            ConsumerContainer container = getConsumerContainer(ejbIndex, getEnterpriseBeanMetaData(deployment, ejbName, JBossConsumerBeanMetaData.class));
            container.setJaccContextId(getJaccContextId());
            containers.add(container);
         }
         log.debug("found EJB3: ejbName=" + ejbName + ", class=" + className + ", type=" + ejbType);
      }
View Full Code Here

      if (domain == null)
         throw new RuntimeException("No container configured with name '"
                 + containerName + "''");

      return new ServiceContainer(deployment.getMbeanServer(), di.getClassLoader(), className,
              ejbNames.get(ejbIndex), (Domain) domain.getManager(), ctxProperties,
              deployment, beanMetaData);

   }
View Full Code Here

               container.setJaccContextId(getJaccContextId());
               containers.add(container);
            }
            else if (ejbType == EJB_TYPE.SERVICE)
            {
               ServiceContainer container = getServiceContainer(ejbIndex, (JBossServiceBeanMetaData) enterpriseBean);
               container.setJaccContextId(getJaccContextId());
               containers.add(container);
            }
            else if (ejbType == EJB_TYPE.CONSUMER)
            {
               ConsumerContainer container = getConsumerContainer(ejbIndex, (JBossConsumerBeanMetaData) enterpriseBean);
               container.setJaccContextId(getJaccContextId());
               containers.add(container);
            }
            log.debug("found EJB3: ejbName=" + ejbName + ", class=" + className + ", type=" + ejbType);
         }
      }
View Full Code Here

   protected ServiceContainer getServiceContainer(int ejbIndex, JBossServiceBeanMetaData service)
         throws Exception
   {
      String ejbName = ejbNames.get(ejbIndex);

      ServiceContainer container = super.getServiceContainer(ejbIndex, service);
      ServiceImpl annotation = new ServiceImpl((Service) container
            .resolveAnnotation(Service.class));

      container.setAssemblyDescriptor(dd.getAssemblyDescriptor());

      if (service != null && !isAnnotatedBean())
      {
         if (service.getObjectName() != null)
            annotation.setObjectName(service.getObjectName());
View Full Code Here

               container.setJaccContextId(getJaccContextId());
               containers.add(container);
            }
            else if (ejbType == EJB_TYPE.SERVICE)
            {
               ServiceContainer container = getServiceContainer(ejbIndex, (JBossServiceBeanMetaData) enterpriseBean);
               container.setJaccContextId(getJaccContextId());
               containers.add(container);
            }
            else if (ejbType == EJB_TYPE.CONSUMER)
            {
               ConsumerContainer container = getConsumerContainer(ejbIndex, (JBossConsumerBeanMetaData) enterpriseBean);
               container.setJaccContextId(getJaccContextId());
               containers.add(container);
            }
            log.debug("found EJB3: ejbName=" + ejbName + ", class=" + className + ", type=" + ejbType);
         }
      }
View Full Code Here

   protected ServiceContainer getServiceContainer(int ejbIndex, JBossServiceBeanMetaData service)
         throws Exception
   {
      String ejbName = ejbNames.get(ejbIndex);

      ServiceContainer container = super.getServiceContainer(ejbIndex, service);
      ServiceImpl annotation = new ServiceImpl((Service) container
            .resolveAnnotation(Service.class));

      container.setAssemblyDescriptor(dd.getAssemblyDescriptor());

      if (service != null && !isAnnotatedBean())
      {
         if (service.getObjectName() != null)
            annotation.setObjectName(service.getObjectName());
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.service.ServiceContainer

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.