Re: JPA doc related to EM Producer

2014-10-03 Thread hwaastad
(); } with a little help from @romain i realized that my em's were resource_local using the producer shown in the DS docs. br hw -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/JPA-doc-related-to-EM-Producer-tp4658999p4659077.html Sent from

Re: JPA doc related to EM Producer

2014-10-03 Thread Karl Kildén
from @romain i realized that my em's were resource_local using the producer shown in the DS docs. br hw -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/JPA-doc-related-to-EM-Producer-tp4658999p4659077.html Sent from the Apache DeltaSpike

Re: JPA doc related to EM Producer

2014-10-03 Thread hwaastad
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.

Re: JPA doc related to EM Producer

2014-10-03 Thread Romain Manni-Bucau
/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

Re: JPA doc related to EM Producer

2014-10-03 Thread hwaastad
Hi, DS doc specifies the use of BeanManagedUserTransactionStrategy in beans.xml. Should'nt that be enough? ..or containermanaged strategy? br hw -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/JPA-doc-related-to-EM-Producer

Re: JPA doc related to EM Producer

2014-09-26 Thread Claudio Miranda
On Thu, Sep 25, 2014 at 7:05 PM, Gerhard Petracek gerhard.petra...@gmail.com wrote: please have a look at [1]. there you can see several differences compared to your demo. e.g. you don't have the TransactionalInterceptor in your beans.xml (see [2]). if you would like to use jta, please have a

Re: JPA doc related to EM Producer

2014-09-26 Thread Gerhard Petracek
since we only provide documentation about deltaspike itself, it should be clear implicitly. some modules extend ee6/ee7 and therefore you will see a mix of java ee and deltaspike by definition. (BMT is a valid part of the spec. and therefore nothing special/separated.) regards, gerhard

Re: JPA doc related to EM Producer

2014-09-25 Thread Gerhard Petracek
hi claudio, please have a look at [1]. there you can see several differences compared to your demo. e.g. you don't have the TransactionalInterceptor in your beans.xml (see [2]). if you would like to use jta, please have a look at [3]. regards, gerhard [1]

Re: JPA doc related to EM Producer

2014-09-24 Thread Gerhard Petracek
thx for providing the demo-application which illustrates the issue. i'll have a look at it. regards, gerhard 2014-09-24 3:51 GMT+02:00 Claudio Miranda clau...@claudius.com.br: On Mon, Sep 22, 2014 at 5:36 PM, Gerhard Petracek gerhard.petra...@gmail.com wrote: that part of the

Re: JPA doc related to EM Producer

2014-09-23 Thread Claudio Miranda
On Mon, Sep 22, 2014 at 5:36 PM, Gerhard Petracek gerhard.petra...@gmail.com wrote: that part of the documentation is based on demo-applications. if something doesn't work for you, please provide a link to a demo-application which illustrates the issue. See [1] for the demo application that

JPA doc related to EM Producer

2014-09-22 Thread Claudio Miranda
Hi, I was reading the jpa doc [1], and the recommendation to inject the @PersistenceUnit to create an EM to produce it, the @Transactional doesn't work, as the EM is BMT, the em.persist doesn't flush the entity to table. Also every emf.createEM invocation will create a new EM, looks like the

Re: JPA doc related to EM Producer

2014-09-22 Thread Gerhard Petracek
hi claudio, the injected entity-manager is already a proxy - you can expose it as it is. that part of the documentation is based on demo-applications. if something doesn't work for you, please provide a link to a demo-application which illustrates the issue. regards, gerhard 2014-09-22 22:24