db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2532) Client does not return SQLException on XAConnection.getXAResource() on a closed connection, Embedded does
Date Mon, 09 Apr 2007 06:03:32 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Myrna van Lunteren updated DERBY-2532:
--------------------------------------

          Component/s: Network Client
          Description: 
In the following scenario from converted test DataSourceTest:
(non-tested code based on the test code)
----------------
        ClientXADataSource dsx = new ClientXADataSource();
        dsx.setDatabaseName("tstdb");
        XAConnection xac = dsx.getXAConnection();
        XAConnection xac2 = dsx.getXAConnection();
        XAResource xar2 = xac2.getXAResource();
        xac2.close();

        // allow close on already closed XAConnection
        xac2.close();
        try {
            xac2.getXAResource();
            // Network Server does not think this is worth an exception.
        } catch (SQLException sqle) {
            System.out.println("expect a 08003 as with Embedded");
        }
------------------
With DerbyNetClient, the xac2.getXAResource() does not return an SQLException.

This ought to be documented if expected, or fixed.
    Affects Version/s: 10.3.0.0
              Summary: Client does not return SQLException on XAConnection.getXAResource()
on a closed connection, Embedded does  (was: 'XAConnection.getXAResource() on a closed connection
)

> Client does not return SQLException on XAConnection.getXAResource() on a closed connection,
Embedded does
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2532
>                 URL: https://issues.apache.org/jira/browse/DERBY-2532
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.3.0.0
>            Reporter: Myrna van Lunteren
>
> In the following scenario from converted test DataSourceTest:
> (non-tested code based on the test code)
> ----------------
>         ClientXADataSource dsx = new ClientXADataSource();
>         dsx.setDatabaseName("tstdb");
>         XAConnection xac = dsx.getXAConnection();
>         XAConnection xac2 = dsx.getXAConnection();
>         XAResource xar2 = xac2.getXAResource();
>         xac2.close();
>         // allow close on already closed XAConnection
>         xac2.close();
>         try {
>             xac2.getXAResource();
>             // Network Server does not think this is worth an exception.
>         } catch (SQLException sqle) {
>             System.out.println("expect a 08003 as with Embedded");
>         }
> ------------------
> With DerbyNetClient, the xac2.getXAResource() does not return an SQLException.
> This ought to be documented if expected, or fixed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message