Hi Karl

You want requires new so use it. Would avoid issue if you refactor later
your code.

What is the origin of the question? Why wanting to use a workaround?
Le 28 mars 2015 13:37, <[email protected]> a écrit :

> Client transaction context does not propagate with an asynchronous method
> invocation. From the Bean Developer’s view, there is never a transaction
> context flowing in from the client. This means, for example, that the
> semantics of the REQUIRED transaction attribute on an asynchronous method
> are exactly the same as REQUIRES_NEW.
>
> Does this mean that when stateless calls async behavior is requries new
> but when async calls others behavior is normal?
>
> I have a long running batch step and when it fails and rollback it also
> rolls back failure traces we write in the db so I want it in a separate
> transaction so I figured async seems like nice fit but I am not sure if I
> need requires new or not?
>
> Cheers

Reply via email to