Examples of ApplicationServer


Examples of org.apache.openejb.spi.ApplicationServer

        } else if (!interfaceType.isRemote()) {

            return proxy;

        } else {
            final ApplicationServer applicationServer = ServerFederation.getApplicationServer();
            if (interfaceType.isBusiness()) {
                return applicationServer.getBusinessObject(this.getProxyInfo());
            } else {
                return applicationServer.getEJBObject(this.getProxyInfo());
            }
        }
    }
View Full Code Here

Examples of org.apache.openejb.spi.ApplicationServer

            * allow the application server to handle it.
            */
        } else {
            final BaseEjbProxyHandler handler = (BaseEjbProxyHandler) ProxyManager.getInvocationHandler(theProxy);
            if (theProxy instanceof EJBObject) {
                final ApplicationServer applicationServer = ServerFederation.getApplicationServer();
                return applicationServer.getHandle(handler.getProxyInfo());
            } else if (theProxy instanceof EJBHome) {
                final ApplicationServer applicationServer = ServerFederation.getApplicationServer();
                return applicationServer.getHomeHandle(handler.getProxyInfo());
            } else {
                throw new OpenEJBRuntimeException("Invalid proxy type. Handles are only supported by EJBObject types in EJB 1.1");
            }
        }
    }
View Full Code Here

Examples of org.bladerunnerjs.appserver.ApplicationServer

    return applicationServer( bladerunnerConf().getJettyPort() );
  }
 
  public ApplicationServer applicationServer(int port)
  {
    ApplicationServer appServer = appServers.get(port);
    if (appServer == null)
    {
      appServer = new BRJSApplicationServer(this, port);
      appServers.put(port, appServer);
    }
View Full Code Here

Examples of org.hibernate.ejb.test.pack.defaultpar.ApplicationServer

  }

  public void testDefaultPar() throws Exception {
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "defaultpar", new HashMap() );
    EntityManager em = emf.createEntityManager();
    ApplicationServer as = new ApplicationServer();
    as.setName( "JBoss AS" );
    Version v = new Version();
    v.setMajor( 4 );
    v.setMinor( 0 );
    v.setMicro( 3 );
    as.setVersion( v );
    Mouse mouse = new Mouse();
    mouse.setName( "mickey" );
    em.getTransaction().begin();
    em.persist( as );
    em.persist( mouse );
    assertEquals( 1, em.createNamedQuery( "allMouse" ).getResultList().size() );
    Lighter lighter = new Lighter();
    lighter.name = "main";
    lighter.power = " 250 W";
    em.persist( lighter );
    em.flush();
    em.remove( lighter );
    em.remove( mouse );
    assertNotNull( as.getId() );
    em.remove( as );
    em.getTransaction().commit();
    em.close();
    emf.close();
  }
View Full Code Here

Examples of org.hibernate.ejb.test.pack.defaultpar.ApplicationServer

    IncrementListener.reset();
    OtherIncrementListener.reset();
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "defaultpar", new HashMap() );
    EntityManager em = emf.createEntityManager();
    em.getTransaction().begin();
    ApplicationServer as = new ApplicationServer();
    as.setName( "JBoss AS" );
    Version v = new Version();
    v.setMajor( 4 );
    v.setMinor( 0 );
    v.setMicro( 3 );
    as.setVersion( v );
    em.persist( as );
    em.flush();
    assertEquals( "Failure in default listeners", 1, IncrementListener.getIncrement() );
    assertEquals( "Failuer in XML overriden listeners", 1, OtherIncrementListener.getIncrement() );
View Full Code Here

Examples of org.hibernate.ejb.test.pack.defaultpar.ApplicationServer

  }

  public void testDefaultPar() throws Exception {
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "defaultpar", new HashMap() );
    EntityManager em = emf.createEntityManager();
    ApplicationServer as = new ApplicationServer();
    as.setName( "JBoss AS" );
    Version v = new Version();
    v.setMajor( 4 );
    v.setMinor( 0 );
    v.setMicro( 3 );
    as.setVersion( v );
    Mouse mouse = new Mouse();
    mouse.setName( "mickey" );
    em.getTransaction().begin();
    em.persist( as );
    em.persist( mouse );
    assertEquals( 1, em.createNamedQuery( "allMouse" ).getResultList().size() );
    Lighter lighter = new Lighter();
    lighter.name = "main";
    lighter.power = " 250 W";
    em.persist( lighter );
    em.flush();
    em.remove( lighter );
    em.remove( mouse );
    assertNotNull( as.getId() );
    em.remove( as );
    em.getTransaction().commit();
    em.close();
    emf.close();
  }
View Full Code Here

Examples of org.hibernate.ejb.test.pack.defaultpar.ApplicationServer

    IncrementListener.reset();
    OtherIncrementListener.reset();
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "defaultpar", new HashMap() );
    EntityManager em = emf.createEntityManager();
    em.getTransaction().begin();
    ApplicationServer as = new ApplicationServer();
    as.setName( "JBoss AS" );
    Version v = new Version();
    v.setMajor( 4 );
    v.setMinor( 0 );
    v.setMicro( 3 );
    as.setVersion( v );
    em.persist( as );
    em.flush();
    assertEquals( "Failure in default listeners", 1, IncrementListener.getIncrement() );
    assertEquals( "Failuer in XML overriden listeners", 1, OtherIncrementListener.getIncrement() );
View Full Code Here

Examples of org.hibernate.ejb.test.pack.defaultpar.ApplicationServer

    addPackageToClasspath( testPackage );

    // run the test
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "defaultpar", new HashMap() );
    EntityManager em = emf.createEntityManager();
    ApplicationServer as = new ApplicationServer();
    as.setName( "JBoss AS" );
    Version v = new Version();
    v.setMajor( 4 );
    v.setMinor( 0 );
    v.setMicro( 3 );
    as.setVersion( v );
    Mouse mouse = new Mouse();
    mouse.setName( "mickey" );
    em.getTransaction().begin();
    em.persist( as );
    em.persist( mouse );
    assertEquals( 1, em.createNamedQuery( "allMouse" ).getResultList().size() );
    Lighter lighter = new Lighter();
    lighter.name = "main";
    lighter.power = " 250 W";
    em.persist( lighter );
    em.flush();
    em.remove( lighter );
    em.remove( mouse );
    assertNotNull( as.getId() );
    em.remove( as );
    em.getTransaction().commit();
    em.close();
    emf.close();
  }
View Full Code Here

Examples of org.hibernate.ejb.test.pack.defaultpar.ApplicationServer

    IncrementListener.reset();
    OtherIncrementListener.reset();
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "defaultpar", new HashMap() );
    EntityManager em = emf.createEntityManager();
    em.getTransaction().begin();
    ApplicationServer as = new ApplicationServer();
    as.setName( "JBoss AS" );
    Version v = new Version();
    v.setMajor( 4 );
    v.setMinor( 0 );
    v.setMicro( 3 );
    as.setVersion( v );
    em.persist( as );
    em.flush();
    assertEquals( "Failure in default listeners", 1, IncrementListener.getIncrement() );
    assertEquals( "Failure in XML overriden listeners", 1, OtherIncrementListener.getIncrement() );
View Full Code Here

Examples of org.jboss.test.faces.ApplicationServer

    @Before
    public void setUp() throws Exception {
        facesEnvironment = new CustomizedHtmlUnitEnvironment();

        ApplicationServer facesServer = facesEnvironment.getServer();
        facesServer.addResource("/resources/" + SIMULATION_SCRIPT_NAME, "org/ajax4jsf/component/" + SIMULATION_SCRIPT_NAME);
        facesServer.addResource("/resources/" + QUEUEAJAX_SCRIPT_NAME, "org/ajax4jsf/component/" + QUEUEAJAX_SCRIPT_NAME);
        facesServer.addResource("/test.xhtml", "org/ajax4jsf/component/test.xhtml");

        facesEnvironment.start();
    }
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.