IIRC with deltaspike you need a custom transaction strategy for JTA (DS is really designed for resource local *by default*)
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 8:36 GMT+02:00 hwaastad <he...@waastad.org>: > Hi, > I've tried but realized an issue when using deltaspike and cdi injection in > custom validators. > > the entity is flushed before validation is run and hence will fail. > > I made a test project on github > (https://github.com/hwaastad/TomeeDsValidation.git) and u'll see that > validation fails if the entitymanager is produced like this. > > br hw > > > > -- > View this message in context: > http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/JPA-doc-related-to-EM-Producer-tp4658999p4659079.html > Sent from the Apache DeltaSpike Incubator Discussions mailing list archive at > Nabble.com.