Subject Re: [Firebird-Java] connection-connection vs connection-isql transaction locking wierdness
Author David Jencks
On Jan 27, 2006, at 10:33 AM, Roman Rokytskyy wrote:

>> won't running in an app server using JTA transactions result in the
>> tx starting when the JTA transaction starts and the connection is
>> assigned to the thread, whichever occurs second?
>
> Yup, but it is anyway controlled by external code. I meant that it
> is not
> possible to start transaction from the application:
>
> - when you run in non-managed environment, you cannot do this
> because there
> is no public method there and JDBC specs explicitly say that tx is
> started
> when first statement is executed;

Agreed :-)
>
> - when you run in managed environment, managed code has no means to
> start
> its own transaction - it is started by the environment before.

Hmm, I have a different point of view on this: with CMT you control
the transaction boundary by when you call the CMT ejb, whereas with
BMT you control the transaction boundary by use of UserTransaction.

thanks
david jencks

>
> Roman
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>