Examples of createEntity()


Examples of org.jboss.test.cluster.ejb3.stateful.EntityFacade.createEntity()

  
   public void testExtendedPersistencePassivation() throws Exception
   {
      EntityFacade stateful = (EntityFacade)getInitialContext().lookup("EntityFacadeBean/remote");
      Entity entity = null;
      entity = stateful.createEntity("Kalin");
     
      //passivate
      Thread.sleep(10 * 1000);
     
      MBeanServerConnection server = getServer();
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.EntityFacade.createEntity()

      System.out.println("inUseConnections \n" + inUseConnections);
      if (inUseConnections != 0)
         printStats(server);
      assertEquals(0, inUseConnections);
     
      entity = stateful.createEntity("Kalin" + entity.getId());
     
      inUseConnections = (Integer)server.getAttribute(objectName, "InUseConnections");
      System.out.println("inUseConnections \n" + inUseConnections);
     
      if (inUseConnections != 0)
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.EntityFacade.createEntity()

   public void testDestroyException() throws Exception
   {
      EntityFacade stateful = (EntityFacade)getInitialContext().lookup("EntityFacadeBean/remote");
      assertNotNull(stateful);
      stateful.setThrowRemoveException(EntityFacade.REMOVE_EXCEPTION_TYPE.RUNTIME);
      stateful.createEntity("Kalin");
     
      try
      {
         stateful.remove();
         fail("should catch RuntimeException");
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.EntityFacade.createEntity()

         System.out.println("*** caught " + e.getMessage());
      }
     
      try
      {
         stateful.createEntity("Nogo");
         fail("expected NoSuchEJBException");
      }
      catch(NoSuchEJBException e)
      {
         // ok
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.EntityFacade.createEntity()

      }
     
      stateful = (EntityFacade)getInitialContext().lookup("EntityFacadeBean/remote");
      assertNotNull(stateful);
      stateful.setThrowRemoveException(EntityFacade.REMOVE_EXCEPTION_TYPE.CHECKED);
      stateful.createEntity("Napa");
     
      try
      {
         stateful.remove();
         fail("should catch RuntimeException");
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.EntityFacade.createEntity()

         System.out.println("*** caught " + e.getMessage());
      }
     
      stateful.setThrowRemoveException(EntityFacade.REMOVE_EXCEPTION_TYPE.APPLICATION);
     
      stateful.createEntity("Cabernet");
     
      try
      {
         stateful.removeWithTx();
         fail("should catch RuntimeException");
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.EntityFacade.createEntity()

      catch (AnnotatedAppException e)
      {
         System.out.println("*** caught " + e.getMessage());
      }
     
      stateful.createEntity("Bailey");
     
      stateful = (EntityFacade)getInitialContext().lookup("EntityFacadeBean/remote");
      assertNotNull(stateful);
      stateful.setThrowRemoveException(EntityFacade.REMOVE_EXCEPTION_TYPE.NONE);
     
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.EntityFacade.createEntity()

   public void testDestroyExceptionWithTx() throws Exception
   {
      EntityFacade stateful = (EntityFacade)getInitialContext().lookup("EntityFacadeBean/remote");
      stateful.setThrowRemoveException(EntityFacade.REMOVE_EXCEPTION_TYPE.RUNTIME);
      assertNotNull(stateful);
      stateful.createEntity("Cabernet");
     
      try
      {
         stateful.removeWithTx();
         fail("should catch RuntimeException");
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.EntityFacade.createEntity()

         System.out.println("*** caught " + e.getMessage());
      }
     
      try
      {
         stateful.createEntity("Nogo");
         fail("expected NoSuchEJBException");
      }
      catch(NoSuchEJBException e)
      {
         // ok
View Full Code Here

Examples of org.jitterbit.integration.client.ui.entity.UiEntityFactory.createEntity()

    @Override
    protected void performActionOn(WebServiceCall wsCall) {
        UiEntityFactory factory = new InterchangeEntityFactory(getView());
        UiEntityFactory.Callback callback = new TransformationDecorator(wsCall);
        factory.createEntity(EntityType.Transformation, true, callback);
    }


    private static class TransformationDecorator extends AbstractTransformationDecorator {
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.