[
https://issues.apache.org/jira/browse/DELTASPIKE-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14628193#comment-14628193
]
Gerhard Petracek commented on DELTASPIKE-957:
---------------------------------------------
container managed EMs aren't the default in ds and you end up in almost the
same with a producer.
if you have the config-entry
globalAlternatives.org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy=org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransactionStrategy
or
org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy=org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransactionStrategy
is in the end the same for users.
*you need to read the docs* -> add a config-entry if you like to change the
default handling.
the way we handle it is around for a long time (in ds and even before - since
codi did the same).
> Improve how TransactionStrategies are looked up
> -----------------------------------------------
>
> Key: DELTASPIKE-957
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-957
> Project: DeltaSpike
> Issue Type: New Feature
> Components: Data-Module, Documentation, JPA-Module
> Affects Versions: 1.4.1
> Reporter: John D. Ament
>
> Currently transaction strategies are implemented as alternatives. I created
> a WAR for WildFly 9, and ran into a lot of issues getting it to work. My WAR
> has many JARs in it, all with beans.xml files. I tried to enable the
> alternative in various spots, but no luck, even went through all 30 beans.xml
> files in my project and enabled it. Still went with the default transaction
> strategy.
> In order to fix, I had to enable a global alternative with the strategy.
> This seems to go against our docs, which indicate it should be a regular
> alternative.
> I'd recommend a few things to think about.
> - Expect a concrete producer.
> - Use a class look up in apache-deltaspike.properties
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)