Subject | Re: JDBC driver which implements XADataSource? |
---|---|
Author | Roman Rokytskyy |
Post date | 2003-09-09T09:00:34Z |
Hi,
time. In theory, the only thing that is left is to simply add
javax.sql.XADataSource to "implements" clause and implement missing
methods:
public XAConnection getXAConnection() throws SQLException {
return (XAConnection)getPooledConnection();
}
public XAConnection getXAConnection(String user, String passwd)
throws SQLException
{
return (XAConnection)getPooledConnection(user, passwd);
}
However, it would be great if you could test it with unit tests. If
everything works, please post your changes here, somebody with write
access to the CVS will apply them after reviewing.
Best regards,
Roman Rokytskyy
> When you say "almost everything is there", does this mean a completeI was planning to add XADataSource support myself, but now I have no
> newbie without any deep knowledge of XA could implement it?
time. In theory, the only thing that is left is to simply add
javax.sql.XADataSource to "implements" clause and implement missing
methods:
public XAConnection getXAConnection() throws SQLException {
return (XAConnection)getPooledConnection();
}
public XAConnection getXAConnection(String user, String passwd)
throws SQLException
{
return (XAConnection)getPooledConnection(user, passwd);
}
However, it would be great if you could test it with unit tests. If
everything works, please post your changes here, somebody with write
access to the CVS will apply them after reviewing.
Best regards,
Roman Rokytskyy