Can anyone explain the underlying technical reasons why EJB does not permit
transactions to be demarcated via java.sql.Connection? I know the "what",
but don't have a full understanding of the "why".
Laurel
-----Original Message-----
From: Krishnan Subramanian [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 4:27 AM
To: [EMAIL PROTECTED]
Subject: Re: Is it mandatory to have XADataSource for EJB transactional
suport
Laurel,
You are absolutely right - I was ranting about the XA & distributed
transactions and meant to discuss the java.sql.Connection class and the
UserTrasaction in the same breath, but somewhere along I kinda forgot the
UserTransaction.
The EJB 1.1 spec does state that a BMP enterprise bean cannot call the
Connection.commit or rollback while in the _midst_ of a transaction. or for
that matter even a setAutoCommit.
-krish
On Tue, 15 May 2001 18:24:06 -0500, Laurel Neustadter
<[EMAIL PROTECTED]> wrote:
>According to section 11.3.3 of the EJB 1.1 Specification, a bean may NOT
>control the transaction via the Connection (e.g., may not invoke commit()
or
>rollback() on the java.sql.Connection interface). For bean-managed
>transaction demarcation, you must use the UserTransaction interface.
>
>I may be mis-interpreting the post below, but it seems to imply that you
can
>use the Connection interface to control and demarcate transactions in an
>EJB.
>
>I don't know the implications of doing commit/rollback on the Connection
>itself in the case of one data source only.
>
>Laurel
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".