Examples of DeploymentSummary


Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

      JBossEnterpriseBeansMetaData beans = null;
      if(ejbMetaData != null)
      {
         if(ejbMetaData.getDeploymentSummary() == null)
         {
            DeploymentSummary deploymentSummary = getDeploymentSummary(unit);
            ejbMetaData.setDeploymentSummary(deploymentSummary);
         }
         beans = ejbMetaData.getEnterpriseBeans();
      }
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

//      return jndiName;
//   }

   private static EjbDeploymentSummary getEjbDeploymentSummary(DeploymentUnit unit, JBossEnterpriseBeanMetaData beanMD)
   {
      DeploymentSummary dSummary = getDeploymentSummary(unit);
     
      EjbDeploymentSummary summary = new EjbDeploymentSummary(beanMD,dSummary);
      return summary;
   }
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

      return summary;
   }
  
   private static DeploymentSummary getDeploymentSummary(DeploymentUnit unit)
   {
      DeploymentSummary dSummary = new DeploymentSummary();
      dSummary.setDeploymentName(unit.getSimpleName());
      String baseName = unit.getTopLevel().getSimpleName();
      int dot = baseName.lastIndexOf('.');
      if(dot > 0)
      {
         baseName = baseName.substring(0, dot);
      }
      dSummary.setDeploymentScopeBaseName(baseName);
     
      /*
       * Determine the packaging type (JAR or EAR, Standalone File not
       * supported by this deployer)
       */
     
      // Initialize to JAR
      PackagingType packagingType = PackagingType.JAR;
     
      // Determine if EAR
      boolean isEar = unit != unit.getTopLevel();
      if(isEar)
      {
         packagingType = PackagingType.EAR;
      }
     
      // Set type
      dSummary.setPackagingType(packagingType);
     
      // Return
      return dSummary;
   }
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

      JBossSessionBeanMetaData mdWithApplicationName2 = Utils.createSlsb(ejbImplClass).getMetaData();
      JBossSessionBeanMetaData mdWithoutApplicationName = Utils.createSlsb(ejbImplClass).getMetaData();

      // Set application name manually on 2 containers
      mdWithApplicationName1.getEnterpriseBeansMetaData().getEjbJarMetaData().setDeploymentSummary(
            new DeploymentSummary());
      mdWithApplicationName1.getEnterpriseBeansMetaData().getEjbJarMetaData().getDeploymentSummary()
            .setDeploymentScopeBaseName("EAR1");
      mdWithApplicationName2.getEnterpriseBeansMetaData().getEjbJarMetaData().setDeploymentSummary(
            new DeploymentSummary());
      mdWithApplicationName2.getEnterpriseBeansMetaData().getEjbJarMetaData().getDeploymentSummary()
            .setDeploymentScopeBaseName("EAR2");

      // Create a registrar
      JndiStatelessSessionRegistrar reg = new JndiStatelessSessionRegistrar(StatelessSessionProxyObjectFactory.class
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

      assert suffix != null && !suffix.equals("") : ProxyFactory.class.getSimpleName()
            + " key prefix for binding to registry is not specified";

      // Get EAR name (if defined)
      String earName = null;
      DeploymentSummary summary = smd.getEjbJarMetaData().getDeploymentSummary();
      if (summary != null)
      {
         earName = summary.getDeploymentScopeBaseName();
      }
      String earPrefix = earName == null ? "" : earName + "/";

      // Assemble and return
      String key = JndiSessionRegistrarBase.KEY_PREFIX_PROXY_FACTORY_REGISTRY + earPrefix + smd.getEjbName() + "/"
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

      assert suffix != null && !suffix.equals("") : ProxyFactory.class.getSimpleName()
            + " key prefix for binding to registry is not specified";

      // Get EAR name (if defined)
      String earName = null;
      DeploymentSummary summary = smd.getEjbJarMetaData().getDeploymentSummary();
      if (summary != null)
      {
         earName = summary.getDeploymentScopeBaseName();
      }
      String earPrefix = earName == null ? "" : earName + "/";

      // Assemble and return
      String key = JndiSessionRegistrarBase.KEY_PREFIX_PROXY_FACTORY_REGISTRY + earPrefix + smd.getEjbName() + "/"
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

      assert suffix != null && !suffix.equals("") : ProxyFactory.class.getSimpleName()
            + " key prefix for binding to registry is not specified";

      // Get EAR name (if defined)
      String earName = null;
      DeploymentSummary summary = smd.getEjbJarMetaData().getDeploymentSummary();
      if (summary != null)
      {
         earName = summary.getDeploymentScopeBaseName();
      }
      String earPrefix = earName == null ? "" : earName + "/";

      // Assemble and return
      String key = JndiSessionRegistrarBase.KEY_PREFIX_PROXY_FACTORY_REGISTRY + earPrefix + smd.getEjbName() + "/"
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.