Package org.apache.webbeans.spi.ee.openejb

Examples of org.apache.webbeans.spi.ee.openejb.JPAServiceOpenEJBImpl


        p.put("movieDatabaseUnmanaged.JtaManaged", "false");
       
        Context context = new InitialContext(p);

        //X Movies movies = (Movies) context.lookup("MoviesLocal");
        JPAService jpaService = new JPAServiceOpenEJBImpl();
       
        EntityManagerFactory emf = jpaService.getPersistenceUnit( "TestUnit" );
        Assert.assertNotNull( emf );
       
        EntityManager em = jpaService.getPersistenceContext( "TestUnit", null );
        Assert.assertNotNull( em );
    }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.spi.ee.openejb.JPAServiceOpenEJBImpl

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.