Package org.jboss.ejb3.jndipolicy

Examples of org.jboss.ejb3.jndipolicy.Ejb3DeploymentSummary


   private PersistenceUnitDependencyResolver persistenceUnitDependencyResolver;

   public ClientENCInjectionContainer(VFSDeploymentUnit unit, JBossClientMetaData xml, Class<?> mainClass, String applicationClientName, ClassLoader classLoader,
         Context encCtx, PersistenceUnitDependencyResolver persistenceUnitDependencyResolver) throws NamingException
   {
      super(new SimpleJavaEEModule((unit.getParent() != null ? unit.getParent().getSimpleName() : null), unit.getSimpleName()));
      if (mainClass == null)
         throw new NullPointerException("mainClass is mandatory");
      if (applicationClientName == null)
         throw new NullPointerException("applicationClientName is mandatory");
      if (classLoader == null)
View Full Code Here


   }

   public TomcatInjectionContainer(WebApplication appInfo, DeploymentUnit unit, org.apache.catalina.Context catalinaContext,
         PersistenceUnitDependencyResolver resolver, Set<String> dynamicClassLoaders, JavaEEComponent component, InjectionManager injectionManager)
   {
      super(new SimpleJavaEEModule(appInfo.getName()));

      assert component != null : "component is null";

      this.unit = unit;
      this.appInfo = appInfo;
View Full Code Here

         // Log
         log.debug("JNDI name has not been explicitly set for EJB " + container.getEjbName() + ", interface "
               + businessInterface.getName());

         // Set JNDI name
         Ejb3DeploymentSummary summary = ProxyFactoryHelper.getDeploymentSummaryFromContainer(container);
         summary.setHome(isHome);
         summary.setLocal(isLocal);
         jndiName = ProxyFactoryHelper.getJndiBindingPolicy(container).getJndiName(summary);
      }

      // Return
      return jndiName;
View Full Code Here

   private static void checkForJndiNamingConflict(Container container)
   {
      if (((Advisor) container).resolveAnnotation(Local.class) != null)
      {
         Ejb3DeploymentSummary summary = ProxyFactoryHelper.getDeploymentSummaryFromContainer(container);
         String localJndiName = ProxyFactoryHelper.getJndiBindingPolicy(container).getDefaultLocalJndiName(summary);
         String remoteJndiName = ProxyFactoryHelper.getJndiBindingPolicy(container).getDefaultRemoteJndiName(summary);
         String ejbName = container.getEjbName();
         if ((localJndiName.equals(remoteJndiName)))
         {
View Full Code Here

   }

   private static Ejb3DeploymentSummary getDeploymentSummaryFromContainer(Container container)
   {
      // Construct Deployment Summary
      Ejb3DeploymentSummary summary = new Ejb3DeploymentSummary();
      summary.setEjbName(container.getEjbName());
      summary.setService(container instanceof ServiceContainer);
      summary.setStateful(container instanceof StatefulContainer);
      summary.setDeploymentName(((EJBContainer) container).getDeployment().getName());
      summary.setBeanClass(container.getBeanClass());
      if (container instanceof EJBContainer)
      {
         DeploymentScope scope = ((EJBContainer) container).getDeployment().getEar();
         if (scope != null)
         {
            summary.setDeploymentScopeBaseName(scope.getBaseName());
         }
      }
      return summary;
   }
View Full Code Here

/*     */
/* 494 */     if (jndiName == null)
/*     */     {
/* 497 */       log.debug("JNDI name has not been explicitly set for EJB " + container.getEjbName() + ", interface " + businessInterface.getName());
/*     */
/* 501 */       Ejb3DeploymentSummary summary = getDeploymentSummaryFromContainer(container);
/* 502 */       summary.setHome(isHome);
/* 503 */       summary.setLocal(isLocal);
/* 504 */       jndiName = getJndiBindingPolicy(container).getJndiName(summary);
/*     */     }
/*     */
/* 508 */     return jndiName;
/*     */   }
View Full Code Here

/*     */
/*     */   private static void checkForJndiNamingConflict(Container container)
/*     */   {
/* 873 */     if (((Advisor)container).resolveAnnotation(Local.class) != null)
/*     */     {
/* 875 */       Ejb3DeploymentSummary summary = getDeploymentSummaryFromContainer(container);
/* 876 */       String localJndiName = getJndiBindingPolicy(container).getDefaultLocalJndiName(summary);
/* 877 */       String remoteJndiName = getJndiBindingPolicy(container).getDefaultRemoteJndiName(summary);
/* 878 */       String ejbName = container.getEjbName();
/* 879 */       if (localJndiName.equals(remoteJndiName))
/*     */       {
View Full Code Here

/* 949 */     throw new RuntimeException(e);
/*     */   }
/*     */
/*     */   private static Ejb3DeploymentSummary getDeploymentSummaryFromContainer(Container container)
/*     */   {
/* 956 */     Ejb3DeploymentSummary summary = new Ejb3DeploymentSummary();
/* 957 */     summary.setEjbName(container.getEjbName());
/* 958 */     summary.setService(container instanceof ServiceContainer);
/* 959 */     summary.setStateful(container instanceof StatefulContainer);
/* 960 */     summary.setDeploymentName(((EJBContainer)container).getDeployment().getName());
/* 961 */     summary.setBeanClass(container.getBeanClass());
/* 962 */     if ((container instanceof EJBContainer))
/*     */     {
/* 964 */       DeploymentScope scope = ((EJBContainer)container).getDeployment().getEar();
/* 965 */       if (scope != null)
/*     */       {
/* 967 */         summary.setDeploymentScopeBaseName(scope.getBaseName());
/*     */       }
/*     */     }
/* 970 */     return summary;
/*     */   }
View Full Code Here

      if(result instanceof JBossGenericBeanMetaData)
      {
         log.warn("FIXME: EJBTHREE-1227: JBossGenericBeanMetaData found for '" + ejbName + "' instead of " + enterpriseBeanMetaDataClass);
         if(enterpriseBeanMetaDataClass.equals(JBossSessionBeanMetaData.class))
         {
            result = new JBossSessionGenericWrapper((JBossGenericBeanMetaData) result);
         }
         else if(enterpriseBeanMetaDataClass.equals(JBossMessageDrivenBeanMetaData.class))
         {
            result = new JBossMessageDrivenBeanGenericWrapper((JBossGenericBeanMetaData) result);
         }
View Full Code Here

    * </p>
    *
    */
   protected void initMetaDataBasedAnnotationRepository()
   {
      this.metadataBasedAnnotationRepo = new AnnotationRepositoryToMetaData(this.beanClass, this.xml, name, this.classloader);
      List<MetaDataBridge<InterceptorMetaData>> interceptorBridges = new ArrayList<MetaDataBridge<InterceptorMetaData>>();
      interceptorBridges.add(new InterceptorMetaDataBridge());
      this.metadataBasedAnnotationRepo.addComponentMetaDataLoaderFactory(new InterceptorComponentMetaDataLoaderFactory(interceptorBridges));
      this.metadataBasedAnnotationRepo.addMetaDataBridge(new AdditiveBeanInterceptorMetaDataBridge(this.beanClass, this.classloader, this.xml));
     
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.jndipolicy.Ejb3DeploymentSummary

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.