Package org.jboss.deployers.structure.spi

Examples of org.jboss.deployers.structure.spi.DeploymentUnit


   public void testEjbJars() throws Exception
   {
      // ejb1.jar
      JavaArchive ejbJar1 = createEjbJar("ejb1.jar", true, PlainJavaBean.class);
      DeploymentUnit unit = assertDeploy(ejbJar1);
      Class<?> plainJavaBeanClass = getClass(PlainJavaBean.class, unit);
      Deployment deployment1 = initializeDeploymentBean(unit);
     
      // ejb2.jar
      JavaArchive ejbJar2 = createEjbJar("ejb2.jar", true,  MySLSBean.class, BusinessInterface.class);
View Full Code Here


   public void testMixedEjbJars() throws Exception
   {
      // ejb1.jar
      JavaArchive ejbJar1 = createEjbJar("ejb1.jar", true, PlainJavaBean.class);
      DeploymentUnit unit = assertDeploy(ejbJar1);
      Class<?> plainJavaBeanClass = getClass(PlainJavaBean.class, unit);
      Deployment deployment1 =  initializeDeploymentBean(unit);
      // ejb2.jar
      JavaArchive ejbJar2 = createEjbJar("ejb2.jar", false,  MySLSBean.class, BusinessInterface.class);
      unit = assertDeploy(ejbJar2);
      ClassLoader classLoader2 = unit.getClassLoader();
      Class<?> mySLSBeanClass = classLoader2.loadClass(MySLSBean.class.getName());
      Class<?> businessInterface = classLoader2.loadClass(BusinessInterface.class.getName());
     
      BeanDeploymentArchive bda1 = deployment1.getBeanDeploymentArchives().iterator().next();
      assertSame(bda1, deployment1.loadBeanDeploymentArchive(plainJavaBeanClass));
View Full Code Here

      JavaArchive ejbJar1 = createEjbJar("ejbJar1.jar", true, PlainJavaBean.class);
      ear.addModule(ejbJar1);
      JavaArchive ejbJar2 = createEjbJar("ejbJar2.jar", true, MySLSBean.class, BusinessInterface.class);
      ear.addModule(ejbJar2);
      MockArchiveManifest.addManifest(ear);
      DeploymentUnit unit = assertDeploy(ear);
      Class<?> plainJavaBeanClass = getClass(PlainJavaBean.class, unit);
      Class<?> mySLSBeanClass = getClass(MySLSBean.class, unit);
      Class<?> businessInterface = getClass(BusinessInterface.class, unit);
     
      Deployment deployment =  initializeDeploymentBean();
View Full Code Here

      JavaArchive ejbJar1 = createEjbJar("ejbJar1.jar", true, PlainJavaBean.class);
      ear.addModule(ejbJar1);
      JavaArchive ejbJar2 = createEjbJar("ejbJar2.jar", false, MySLSBean.class, BusinessInterface.class);
      ear.addModule(ejbJar2);
      MockArchiveManifest.addManifest(ear);
      DeploymentUnit unit = assertDeploy(ear);
      Class<?> plainJavaBeanClass = getClass(PlainJavaBean.class, unit);
      Class<?> mySLSBeanClass = getClass(MySLSBean.class, unit);
      Class<?> businessInterface = getClass(BusinessInterface.class, unit);
     
      Deployment deployment = initializeDeploymentBean();
View Full Code Here

      // simple1.ear
      EnterpriseArchive ear1 = ShrinkWrap.create(EnterpriseArchive.class, "simple1.ear");
      JavaArchive ejbJar1 = createEjbJar("ejbJar1.jar", true, PlainJavaBean.class);
      ear1.addModule(ejbJar1);
      MockArchiveManifest.addManifest(ear1);
      DeploymentUnit unit = assertDeploy(ear1);
      Class<?> plainJavaBeanClass = getClass(PlainJavaBean.class, unit);
      Deployment deployment1 = initializeDeploymentBean(unit);
      // simple2.ear
      EnterpriseArchive ear2 = ShrinkWrap.create(EnterpriseArchive.class, "simple2.ear");
      JavaArchive ejbJar2 = createEjbJar("ejbJar2.jar", true, MySLSBean.class, BusinessInterface.class);
View Full Code Here

      // simple1.ear
      EnterpriseArchive ear1 = ShrinkWrap.create(EnterpriseArchive.class, "simple1.ear");
      JavaArchive ejbJar1 = createEjbJar("ejbJar1.jar", false, PlainJavaBean.class);
      ear1.addModule(ejbJar1);
      MockArchiveManifest.addManifest(ear1);
      DeploymentUnit unit = assertDeploy(ear1);
      Class<?> plainJavaBeanClass = getClass(PlainJavaBean.class, unit);

      // simple2.ear
      EnterpriseArchive ear2 = ShrinkWrap.create(EnterpriseArchive.class, "simple2.ear");
      JavaArchive ejbJar2 = createEjbJar("ejbJar2.jar", true, MySLSBean.class, BusinessInterface.class);
View Full Code Here

   }
  
   public void testWars() throws Exception
   {
      WebArchive war1 = createWar("simple1.war", true, ServletWebBean.class);
      DeploymentUnit unit = assertDeploy(war1);
      Class<?> servletWebBeanClass = getClass(ServletWebBean.class, unit);
      Deployment deployment1 = initializeDeploymentBean(unit);

      WebArchive war2 = createWar("simple2.war", true, NotWBJsfBean.class);
      unit = assertDeploy(war2);
View Full Code Here

   }
  
   public void testWarWithLib() throws Exception
   {
      WebArchive war = createWarWithLib(true, true);
      DeploymentUnit unit = assertDeploy(war);
      Class<?> servletWebBeanClass = getClass(ServletWebBean.class, unit);
      Class<?> uiWebBeanClass = getClass(UIWebBean.class, unit);
      Deployment deployment = initializeDeploymentBean();
     
      BeanDeploymentArchive bda = deployment.getBeanDeploymentArchives().iterator().next();
View Full Code Here

   }
  
   public void testWarWithLibWithoutXml() throws Exception
   {
      WebArchive war = createWarWithLib(true, false);
      DeploymentUnit unit = assertDeploy(war);
      Class<?> servletWebBeanClass = getClass(ServletWebBean.class, unit);
      Class<?> uiWebBeanClass = getClass(UIWebBean.class, unit);
      Deployment deployment = initializeDeploymentBean();
     
      BeanDeploymentArchive bda = deployment.getBeanDeploymentArchives().iterator().next();
View Full Code Here

   }
  
   public void testWarWithoutXmlWithLib() throws Exception
   {
      WebArchive war = createWarWithLib(false, true);
      DeploymentUnit unit = assertDeploy(war);
      Class<?> servletWebBeanClass = getClass(ServletWebBean.class, unit);
      Class<?> uiWebBeanClass = getClass(UIWebBean.class, unit);
      Deployment deployment = initializeDeploymentBean();
     
      BeanDeploymentArchive bda = deployment.getBeanDeploymentArchives().iterator().next();
View Full Code Here

TOP

Related Classes of org.jboss.deployers.structure.spi.DeploymentUnit

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.