Examples of determineResolvedJndiName()


Examples of org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.determineResolvedJndiName()

   {
      JBossEnterpriseBeanMetaData beanMD = getEjbMetaData();
      beanMD.setJndiBindingPolicy(EjbNameJndiBindingPolicy.class.getName());
      String resolvedJndiName = beanMD.determineResolvedJndiName(null, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejb", resolvedJndiName);     
      String resolvedJndiNameRemote = beanMD.determineResolvedJndiName(KnownInterfaces.REMOTE, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbRemote", resolvedJndiNameRemote);     
      String resolvedJndiNameHome = beanMD.determineResolvedJndiName(KnownInterfaces.HOME, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbHome", resolvedJndiNameHome);     
      String resolvedJndiNameLocal = beanMD.determineResolvedJndiName(KnownInterfaces.LOCAL, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbLocal", resolvedJndiNameLocal);     
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.determineResolvedJndiName()

      beanMD.setJndiBindingPolicy(EjbNameJndiBindingPolicy.class.getName());
      String resolvedJndiName = beanMD.determineResolvedJndiName(null, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejb", resolvedJndiName);     
      String resolvedJndiNameRemote = beanMD.determineResolvedJndiName(KnownInterfaces.REMOTE, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbRemote", resolvedJndiNameRemote);     
      String resolvedJndiNameHome = beanMD.determineResolvedJndiName(KnownInterfaces.HOME, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbHome", resolvedJndiNameHome);     
      String resolvedJndiNameLocal = beanMD.determineResolvedJndiName(KnownInterfaces.LOCAL, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbLocal", resolvedJndiNameLocal);     
      String resolvedJndiNameLocalHome = beanMD.determineResolvedJndiName(KnownInterfaces.LOCAL_HOME, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbLocalHome", resolvedJndiNameLocalHome);     
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.determineResolvedJndiName()

      assertEquals("testResolvedJndiNamesWithMDPolicy-ejb", resolvedJndiName);     
      String resolvedJndiNameRemote = beanMD.determineResolvedJndiName(KnownInterfaces.REMOTE, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbRemote", resolvedJndiNameRemote);     
      String resolvedJndiNameHome = beanMD.determineResolvedJndiName(KnownInterfaces.HOME, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbHome", resolvedJndiNameHome);     
      String resolvedJndiNameLocal = beanMD.determineResolvedJndiName(KnownInterfaces.LOCAL, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbLocal", resolvedJndiNameLocal);     
      String resolvedJndiNameLocalHome = beanMD.determineResolvedJndiName(KnownInterfaces.LOCAL_HOME, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbLocalHome", resolvedJndiNameLocalHome);     
      String resolvedJndiNameIface = beanMD.determineResolvedJndiName("org.jboss.test.some.IFace", null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejb/org.jboss.test.some.IFace", resolvedJndiNameIface);     
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.determineResolvedJndiName()

      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbRemote", resolvedJndiNameRemote);     
      String resolvedJndiNameHome = beanMD.determineResolvedJndiName(KnownInterfaces.HOME, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbHome", resolvedJndiNameHome);     
      String resolvedJndiNameLocal = beanMD.determineResolvedJndiName(KnownInterfaces.LOCAL, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbLocal", resolvedJndiNameLocal);     
      String resolvedJndiNameLocalHome = beanMD.determineResolvedJndiName(KnownInterfaces.LOCAL_HOME, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbLocalHome", resolvedJndiNameLocalHome);     
      String resolvedJndiNameIface = beanMD.determineResolvedJndiName("org.jboss.test.some.IFace", null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejb/org.jboss.test.some.IFace", resolvedJndiNameIface);     
   }
   /**
 
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.determineResolvedJndiName()

      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbHome", resolvedJndiNameHome);     
      String resolvedJndiNameLocal = beanMD.determineResolvedJndiName(KnownInterfaces.LOCAL, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbLocal", resolvedJndiNameLocal);     
      String resolvedJndiNameLocalHome = beanMD.determineResolvedJndiName(KnownInterfaces.LOCAL_HOME, null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejbLocalHome", resolvedJndiNameLocalHome);     
      String resolvedJndiNameIface = beanMD.determineResolvedJndiName("org.jboss.test.some.IFace", null);
      assertEquals("testResolvedJndiNamesWithMDPolicy-ejb/org.jboss.test.some.IFace", resolvedJndiNameIface);     
   }
   /**
    * Test the determineResolvedJndiName with a jndiBindingPolicy passed into
    * determineResolvedJndiName
 
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.JBossEntityBeanMetaData.determineResolvedJndiName()

      assertEquals("entity1EjbName_jndi_name", ebeanMD.getJndiName());
      assertEquals("entity1Home", ebeanMD.getHome());
      // Set a DeploymentSummary with an ear scoping
      ebeanMD.getJBossMetaData().setDeploymentSummary(dsummary);
      // Validate that jboss jndi-name is what is used for the home interface
      jndiName = ebeanMD.determineResolvedJndiName("entity1Home");
      assertEquals("entity1EjbName_jndi_name", jndiName);     
   }

   protected void assertSessionBeans(JBossSessionBeanMetaData metaData)
   {
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData.determineResolvedJndiName()

  
   protected String getJndiName()
   {
      SessionSpecContainer container = this.getContainer();
      JBossSessionBeanMetaData md = container.getMetaData();
      String jndiName = md.determineResolvedJndiName(null);
      return jndiName;
   }

   protected String getHomeJndiName()
   {
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData.determineResolvedJndiName()

   protected String getHomeJndiName()
   {
      SessionSpecContainer container = this.getContainer();
      JBossSessionBeanMetaData md = container.getMetaData();
      String home = md.getHome();
      String jndiName = md.determineResolvedJndiName(home);
      return jndiName;
   }
  
   public final String getJndiNameProxyFactory()
   {
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData.determineResolvedJndiName()

  
   protected String getJndiName()
   {
      SessionSpecContainer container = this.getContainer();
      JBossSessionBeanMetaData md = container.getMetaData();
      String jndiName = md.determineResolvedJndiName(null);
      return jndiName;
   }

   protected String getHomeJndiName()
   {
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData.determineResolvedJndiName()

   protected String getHomeJndiName()
   {
      SessionSpecContainer container = this.getContainer();
      JBossSessionBeanMetaData md = container.getMetaData();
      String home = md.getHome();
      String jndiName = md.determineResolvedJndiName(home);
      return jndiName;
   }
  
   public final String getJndiNameProxyFactory()
   {
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.