tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwaastad <he...@waastad.org>
Subject Re: deltaspike fullstack example
Date Fri, 03 Oct 2014 05:30:15 GMT
OK,
I finally figured out what you were saying....

I reconfigured my em/emf producers.

@Produces
    @ApplicationScoped
    public EntityManagerFactory createEntityManagerFactory() {
        System.out.println("Producing EMF......");
        return Persistence.createEntityManagerFactory("ValidationPU");
    }

@Produces
    public EntityManager createEntityManager(EntityManagerFactory
entityManagerFactory) {
        System.out.println("Producing entitymanager.....");
        return entityManagerFactory.createEntityManager();
    }

And now I belive its JTA, right?
at least now the validation is throwing and QueryInvocationException which I
belive is correct.

br hw



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/deltaspike-fullstack-example-tp4672086p4672098.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message