Examples of JbossianRegistrarLocalBusiness


Examples of org.jboss.jbossas.embedded.testsuite.ejb3.entity.JbossianRegistrarLocalBusiness

         final Jbossian wolfc = new Jbossian("Carlo de Wolf", "Superlead", 13);
         final Jbossian alr = new Jbossian("Andew Lee Rubinger", "The New Fluery", 58);
         final Jbossian asaldhan = new Jbossian("Anil Saldhana", "Karma Police", 23);

         // Get an SLSB to interact w/ the DB
         final JbossianRegistrarLocalBusiness slsb = (JbossianRegistrarLocalBusiness) NAMING_CONTEXT
               .lookup(JbossianRegistrarBean.class.getSimpleName() + JNDI_SUFFIX_LOCAL_BUSINESS);

         // Add the JBossians
         slsb.add(jgreene);
         slsb.add(jpederse);
         slsb.add(dmlloyd);
         slsb.add(wolfc);
         slsb.add(alr);
         slsb.add(asaldhan);

         // Get all
         final Collection<Jbossian> jbossians = slsb.getAllJbossians();
         log.info("Got all JBossians: " + jbossians);

         // Test
         Assert.assertEquals(6, jbossians.size());
      }
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.