users@glassfish.java.net

[gf-users] Re: Glassfish JDBC Connection Pool property question

From: Reza Rahman <Reza.Rahman_at_oracle.com>
Date: Fri, 11 Jul 2014 16:56:26 -0400

The best approach is probably to write a test and see what happens. My
guess is that the entity manager will throw an exception if you try to
do anything that requires an active transaction. Otherwise you'll
probably be fine.

On 7/11/2014 4:44 PM, Noah White wrote:
> In the a JDBC Connection Pool there’s a Transaction section which has a property called “Non Transactional Connection” and a check box next to the word “Enabled”. The caption to this property says, “Returns non-transactional connections”.
>
> If the Enabled box is NOT checked off, what happens with respect to EJB’s that have methods annotated with @TransactionAttribute(TransactionAttribute.NOT_SUPPORTED) or .NEVER and whose injected EntityManager is associated with a Persistence units what is a JTA resources that uses this connection pool?
>
> -Noah