well I would have just produced the entity manager directly. Also maybe check validation-mode in the persistence unit.
BTW do you care adding your code to this sample? (ie providing us a formal patch in a TOMEE ticket)? This way it will add at least a test for this issue 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 7:30 GMT+02:00 hwaastad <[email protected]>: > 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.
