Examples of EjbDeploymentSummary


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

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

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

      // Return
      return jndiName;
View Full Code Here

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

   private static void checkForJndiNamingConflict(EJBContainer container)
   {
      if (container.getAnnotation(Local.class) != null)
      {
         EjbDeploymentSummary 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

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

   {
      // Obtain JNDI Binding Policy
      DefaultJndiBindingPolicy policy = ProxyFactoryHelper.getJndiBindingPolicy(container);

      // Obtain Deployment Summary
      EjbDeploymentSummary summary = ProxyFactoryHelper.getDeploymentSummaryFromContainer(container);

      // Return the policy's default remote name for this summary
      return policy.getDefaultRemoteJndiName(summary);
   }
View Full Code Here

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

   }

   private static EjbDeploymentSummary getDeploymentSummaryFromContainer(EJBContainer container)
   {
      // Construct Deployment Summary
      EjbDeploymentSummary summary = new EjbDeploymentSummary();
      summary.setEjbName(container.getEjbName());
      summary.setService(container instanceof ServiceContainer);
      summary.setStateful(container instanceof StatefulContainer);
      summary.setDeploymentName(container.getDeployment().getName());
      summary.setBeanClassName(container.getBeanClass().getName());
      DeploymentScope scope = container.getDeployment().getEar();
      if (scope != null)
      {
         summary.setDeploymentScopeBaseName(scope.getBaseName());
      }

      // Return
      return summary;
   }
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.