Re: em.find outside of a JTA transaction

2013-06-26 Thread Mark Struberg
Why should it not be allowed? There are even samples for a PersistenceContext producer field in the CDI spec. They are not EXTENDED though. Btw not sure what you want to achieve with it... That one is pretty easy to explain. By default when working without DTOs but with plain entities on the

Re: em.find outside of a JTA transaction

2013-06-26 Thread Romain Manni-Bucau
hmm, aren't you used to produce your own em instead of using a container one? whatever you can use a stateful directly to achieve it but you can't produce an extended em. The spec is not that clear about it, it says the extended em is bound to the stateful. You can still wrap your calls in the

Re: em.find outside of a JTA transaction

2013-06-26 Thread Mark Struberg
Effectively the producer method is the same like having a method getEm() in my @Stateful The EM is imo still bound to the @Stateful but it is _used_ outside of it. I gonna rewrite the sample to use the Stateful as interceptor. But I fear it will still not work. LieGrue, strub -

Fwd: svn commit: r1496862 - /tomee/tomee/trunk/container/openejb-core/pom.xml

2013-06-26 Thread Romain Manni-Bucau
Hi Andy, we need to provide something (so scope runtime or compile) otherwise no log will work in tests/standalone at least. Since we log most of our messages with JUL slf4j-jdk14 seems fine. What's the issue? *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: