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

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


    private JPAServiceOpenEJBImpl jpaService = null;
   
    ResourceInjectionProcessor(Context context)
    {
        this.context = context;
        this.jpaService = new JPAServiceOpenEJBImpl(this.context);
    }
View Full Code Here


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

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

TOP

Related Classes of org.apache.webbeans.spi.ee.openejb.jpa.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.