users@glassfish.java.net

Re: Java EE 6: Container Managed Transaction with JAX-RS

From: Felipe Gaucho <fgaucho_at_gmail.com>
Date: Wed, 24 Feb 2010 11:15:51 +0100

Yes for both questions...

On 24.02.2010, at 10:55, "Markus Karg" <karg_at_quipsy.de> wrote:

> I am used to EJB's functionality of Container Managed Transactions:
> Before the invocation of an EJB, a TX is started by the container,
> after the exit it is committed. I am also used to JAX-RS, using
> Jersey since GFv2. But I wonder how it works in Java EE 6, when my
> EAR contains a combination of JAX-RS with either JPA or EJB SLSB.
>
>
>
> * When using JAX-RS calling JPA (without EJB SLSB), will there be a
> container managed transaction?
>
>
>
> * When using JAX-RS calling EJB SLSB, will there be a container
> managed transaction?
>
>
>
> Thanks
>
> Markus
>
>