Quoting the doc:

In case of some versions of Weld (or OpenWebBeans in BDA mode), you have to
configure it as a global alternative instead of an alternative in
beans.xml. That means you have to add, for example,
globalAlternatives.org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy
=org.apache.deltaspike.jpa.impl.transaction.BeanManagedUserTransactionStrategy
to /META-INF/apache-deltaspike.properties.

Le 6 août 2016 11:41, "nicolasduminil" <nicolas.dumi...@simplex-software.fr>
a écrit :

> "Check your stack:
> org.apache.deltaspike.jpa.impl.transaction.ResourceLocalTransactionStrate
> gy
> is used for a JTA em so you didnt configure the transaction strategy. "
>
> Oh yes, I did. The post includes the following excerpt:
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <beans xmlns="http://java.sun.com/xml/ns/javaee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/beans_1_0.xsd";>
>   <alternatives>
>
> <class>org.apache.deltaspike.jpa.impl.transaction.
> ContainerManagedTransactionStrategy</class>
>   </alternatives>
> </beans>
>
> which is supposed to be the way, further to your documentation, to
> configure
> the transaction strategy.
>
>
>
> --
> View this message in context: http://apache-deltaspike-
> incubator-discussions.2316169.n4.nabble.com/A-JTA-
> EntityManager-cannot-use-getTransaction-tp4663224p4663232.html
> Sent from the Apache DeltaSpike Incubator Discussions mailing list archive
> at Nabble.com.
>

Reply via email to