db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dyre Tjeldvoll (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1236) Verify that applications can't manipulate the transaction state while inside a distributed transaction.
Date Tue, 25 Apr 2006 11:27:06 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1236?page=comments#action_12376235 ] 

Dyre Tjeldvoll commented on DERBY-1236:
---------------------------------------

setAutoCommit(), commit() and rollback() inside a global transaction is tested in jdbcapi/XATest.java
(and others). 

setSavepoint() and setSavepoint(String) are NOT tested, but I have verfied that they throw
an exception in a global transaction.

The exceptions thrown are (note that the setSavepoint methods uses the same Exception/error
message as rollback):

commit():
SQL Exception: Cannot commit a global transaction using the Connection, commit p
rocessing must go thru XAResource interface.

rollback():
SQL Exception: Cannot rollback a global transaction using the Connection, commit
 processing must go thru XAResource interface.

setAutoCommit(true):
SQL Exception: Cannot set AUTOCOMMIT ON when in an XA connection.

setSavepoint():
SQL Exception: Cannot rollback a global transaction using the Connection, commit
 processing must go thru XAResource interface.

setSavepoint(String):
SQL Exception: Cannot rollback a global transaction using the Connection, commit
 processing must go thru XAResource interface.

I plan to add setSavepoint() and setSavepoint(String) as test cases in XATest.java.

> Verify that applications can't manipulate the transaction state while inside a distributed
transaction.
> -------------------------------------------------------------------------------------------------------
>
>          Key: DERBY-1236
>          URL: http://issues.apache.org/jira/browse/DERBY-1236
>      Project: Derby
>         Type: Improvement

>     Reporter: Rick Hillegas
>     Assignee: Dyre Tjeldvoll

>
> The next rev of the JDBC4 spec will clarify that applications may not call the following
methods while inside distributed transactions: setAutoCommit( true ), commit(), rollback(),
and setSavepoint(). We should verify that we conform.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message