hi bernard,

thx for the info! please file a jira ticket at [1].
-> i'll have a look at it.

regards,
gerhard

[1] https://issues.apache.org/jira/browse/DELTASPIKE



2012/11/20 Bernard Tison <[email protected]>

> Hi,
>
> I am trying to use the @Transactional annotation in combination with JTA on
> JBoss AS7.
> To do so, I tried to configure the BeanManagedUserTransactionStrategy as a
> global alternative by including a apache-deltaspike.properties file in the
> META-INF directory of my deployment archive.
> The apache-deltaspike.properties file contains the following entry:
>
> org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy=org.apache.deltaspike.jpa.impl.transaction.BeanManagedUserTransactionStrategy
>
> When I deploy my archive, I get the following error message:
>  WELD-001318 Cannot resolve an ambiguous dependency between [Managed Bean
> [class
>
> org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransactionStrategy]
> with qualifiers [@Any @Default], Managed Bean [class
>
> org.apache.deltaspike.jpa.impl.transaction.BeanManagedUserTransactionStrategy]
> with qualifiers [@Any @Default]]
>
> So it seems that both EnvironmentAwareTransactionStrategy and
> BeanManagedUserTransactionStrategy are promoted as a global alternative for
> TransactionStrategy.
>
> Is there something missing in the configuration to avoid this ambiguity?
>
> Thx
>
> Bernard
>

Reply via email to