13 messages in com.mysql.lists.javaRe: MySQL Connector/J 5.0.0 Beta Has ...| From | Sent On | Attachments |
|---|---|---|
| Mark Matthews | 03 Jan 2006 12:55 | |
| Mark Kirkwood | 09 Feb 2006 17:24 | |
| Jack Wang | 09 Feb 2006 18:28 | |
| Mark Kirkwood | 09 Feb 2006 20:15 | |
| Jack Wang | 09 Feb 2006 20:52 | |
| Mark Kirkwood | 09 Feb 2006 22:08 | |
| Jack Wang | 09 Feb 2006 23:22 | |
| Mark Kirkwood | 10 Feb 2006 00:54 | |
| Jack Wang | 10 Feb 2006 05:30 | |
| Mark Matthews | 10 Feb 2006 06:32 | |
| Mark Kirkwood | 10 Feb 2006 13:47 | |
| Mark Kirkwood | 10 Feb 2006 14:27 | |
| Mark Kirkwood | 06 Mar 2006 16:34 |
| Subject: | Re: MySQL Connector/J 5.0.0 Beta Has Been Released![]() |
|---|---|
| From: | Mark Kirkwood (mar...@paradise.net.nz) |
| Date: | 02/09/2006 08:15:03 PM |
| List: | com.mysql.lists.java |
Jack Wang wrote:
I try to do a test to configure a MySQL XADataSource in tomcat 5.5 , but I
only get a null
XADataSource. According to MySQL reference menual, current MySQL 5.0 suport XA.
Does MySQL
Connector/J need MysqlXADataSourceFactory not MysqlDataSourceFactory to
configure the XADatasource
in tomcat ? Currently, there is only MysqlDataSourceFactory in the jdbc driver.
This is the Resource configuration in Tomcat server.xml:
----------------------------------- <Resource name="jdbc/myXADB" auth="Container" type="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource" factory="com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory" driverClassName="com.mysql.jdbc.Driver" user="root" password="password" url="jdbc:mysql://localhost/test" />
-----------------------------------
Thanks.
I think you are running into this bug:
http://bugs.mysql.com/bug.php?id=16791
I get a null pointer exception even using:
type="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" factory="com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory"
whereas
type="javax.sql.DataSource" factory"=org.apache.commons.dbcp.BasicDataSourceFactory"
work fine.
cheers
Mark




