tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: deltaspike fullstack example
Date Fri, 03 Oct 2014 16:49:10 GMT
can be a lifecycle issue. You use the database during flushing right?
not sure it is good.

BTW updated http://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/deltaspike-fullstack/src/main/resources/META-INF/beans.xml
should be ok for you when using a JTA persistence unit


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-10-03 13:17 GMT+02:00 hwaastad <helge@waastad.org>:
> Hi Romain,
> Just a small check with you before a start digging into DS and
> entitymanager.
>
> Container-managed entitymanager:
>    @PersistenceContext(unitName = "ValidationPU")
>     private EntityManager entityManager;
>
>     @Produces
>     EntityManager createEntityManager() {
>         System.out.println("Producing entitymanager.....");
>         return this.entityManager;
>     }
>
> Application managed entitymanager:
>     @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();
>     }
>
> If I'm correct, it seems that DS validation does not work with CM-EM but OK
> with AM-EM.
> In that case I'll continue my discussions with DS.
>
> br hw
>
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/deltaspike-fullstack-example-tp4672086p4672105.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message