jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: [jax-rs-spec users] Transactions, EJBs and AsyncResponse

From: Jan Algermissen <jan.algermissen_at_nordsc.com>
Date: Mon, 22 Oct 2012 12:03:42 +0200

On Oct 22, 2012, at 11:46 AM, Marek Potociar wrote:

> Isn't that something that should perhaps make more sense in the @Asynchronous annotation javadoc? Do you want me to forward your feedback to EJB spec lead?

Dunno - no idea whether this knowledge is 101 of an serious Java EE developer. I allways tend to think it's just me :-)

I just wondered whether it would be interesting to point out in the JAX-RS context because the specs shows this as an example which probably does not yield the expected result.

Just a thought, anyway. No strong feelings about this.

jan

>
> Marek
>
> On Oct 20, 2012, at 6:10 PM, Jan Algermissen <jan.algermissen_at_nordsc.com> wrote:
>
>> In 7.3 the spec points out the use of @Asynchronous.
>>
>> I wonder whether it would ne nice to also point out that the default transaction type of @Asynchronous is to run the annotated method in the same transaction and that requiring a new transaction for the given scenarios is required to really detach the response creation.
>>
>> Might spare some folks some extra debugging work :-)
>>
>> Jan
>