I was mainly thinking of B). My use case is a component with
@javax.transaction.Transactional annotations that should work without
source changes both on Java EE 7 and OSGi.

Regards,
Harald


2014-05-15 12:21 GMT+02:00 Mark Struberg <[email protected]>:

> Hi!
>
> Yes, I would be fine if we would support javax.transaction.Transactional.
>
> There are of course multiple very different scenarios
>
> A.) support javax.transaction.Transactional in a Java EE6 environment. We
> could do this by simply providing an Extension which rewrites the
> javax.transaction.Transactional annotation to our very own DeltaSpike
> @Transactional in ProcessAnnotatedType
>
> B.) support javax.transaction.Transactional in a Java SE environment. This
> could be solved pretty similar to A. The main difference might be whether
> you have a JTA environment (via openejb embedded, atomikos, etc) or
> resource-local transactions. But this can already be solved by simply using
> a different DeltaSpike TransactionStrategy (simply enable the @Alternative
> BeanManagedUserTransactionStrategy for example)
>
> C.) support a 'mixed operation of classes which use EJBs,
> @javax.transaction.Transactional and DeltaSpike @Transactional.
> This already works out of the box if you use
> BeanManagedUserTransactionStrategy as all of them simply utilize
> UserTransaction.
>
> Which scenario did you think of?
>
> LieGrue,
> strub
>
> On Tuesday, 13 May 2014, 20:18, Harald Wellmann <[email protected]>
> wrote:
>
> Is it possible to make DeltaSpike JPA recognize the standard
> >@javax.transaction.Transactional interceptor binding in addition to or
> >instead of its own binding?
> >
> >Use case: A module that can be used both in Java EE 7 and in Java
> >SE/OSGi environments.
> >
> >Best regards,
> >Harald
> >
> >
> >
>

Reply via email to