Package org.jboss.ejb3.deployers

Examples of org.jboss.ejb3.deployers.EJBsDeployer.deploy()


      DeploymentUnit unit = mock(DeploymentUnit.class);
      JBossMetaData metaData = new JBossMetaData();
      metaData.setEjbVersion("3.0");
      when(unit.getAttachment(AttachmentNames.PROCESSED_METADATA, JBossMetaData.class)).thenReturn(metaData);
      deployer.deploy(unit);

      // make sure the deployer actually looked at the metadata
      verify(unit).getAttachment(AttachmentNames.PROCESSED_METADATA, JBossMetaData.class);
      verifyNoMoreInteractions(unit);
   }
View Full Code Here


      enterpriseBeans.add(sessionBean);
      metaData.setEnterpriseBeans(enterpriseBeans);
      when(unit.getAttachment(AttachmentNames.PROCESSED_METADATA, JBossMetaData.class)).thenReturn(metaData);
      DeploymentUnit component = mock(DeploymentUnit.class);
      when(unit.addComponent(JBossEnterpriseBeanMetaData.class.getName() + ".Test")).thenReturn(component);
      deployer.deploy(unit);

      // make sure the deployer actually looked at the metadata
      verify(unit).getAttachment(AttachmentNames.PROCESSED_METADATA, JBossMetaData.class);
      // make sure the component got created
      verify(unit).addComponent(JBossEnterpriseBeanMetaData.class.getName() + ".Test");
View Full Code Here

      // Define the EJB JAR
      final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "outputSlsb.jar").addClasses(OutputBean.class,
            OutputLocalBusiness.class);

      // Deploy the JAR
      shrinkwrapEjbContainer.deploy(archive);

      // Look up the EJB
      final Context context = ejbContainer.getContext();
      final OutputLocalBusiness bean;
      try
View Full Code Here

      // Define the EJB JAR
      final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "outputSlsb.jar").addClasses(OutputBean.class,
            OutputLocalBusiness.class);

      // Deploy the JAR
      shrinkwrapEjbContainer.deploy(archive);

      // Look up the EJB
      final Context context = ejbContainer.getContext();
      final OutputLocalBusiness bean;
      try
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.