RE: Tomcat MySQL XA support

2006-02-12 Thread Jack Wang
okup("java:/comp/env"); > DataSource ds = (DataSource)envContext.lookup("jdbc/DataSource"); > > Hope this helps! > Thanks, > > Lin > > > On Feb 9, 2006, at 5:36 AM, Jack Wang wrote: > > > > >

Re: Tomcat MySQL XA support

2006-02-09 Thread Jack Wang
Does MySQL5.0.18 suport XA in Tomcat 5.5 ? I do a XA test in tomcat with only a jsp file and necessary jars. The jsp is as: - <% Context ctx = new InitialContext(); com.mysql.jdbc.jdbc2.optional.MysqlXADataSource xads = new com.mysql.jdbc.jdbc2.optiona

Re: Tomcat MySQL XA support

2006-02-08 Thread Jack Wang
ot;java:comp/env/jdbc/myXADB");" is null ! Maybe "mysql 5.0.18 + Connector/J + tomcat 5" can not support XA ? > On Thu, 9 Feb 2006, Jack Wang wrote: > > > --- lichtner <[EMAIL PROTECTED]>写道: > > > > > > Is it possible that the data source also

Re: Tomcat MySQL XA support

2006-02-08 Thread Jack Wang
> On Thu, 9 Feb 2006, Jack Wang wrote: > > --- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > > > Jack Wang wrote: > > > > I can get connect from Resource configured in tomcat with > > > > type="javax.sql.DataSource". B

Re: XADataSource error in tomcat 5.5 with MySQL 5.1

2006-02-08 Thread Jack Wang
--- lichtner <[EMAIL PROTECTED]>写道: > > Does this version of Connector/J actually support XA? A few months ago I > remember that it was in alpha, and it was broken. Does the latest release > of the driver support XA? --- "Christopher G. Stach II" <[EMAIL PROTECTE

Re: Tomcat MySQL XA support

2006-02-08 Thread Jack Wang
--- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > Jack Wang wrote: > > I can get connect from Resource configured in tomcat with > > type="javax.sql.DataSource". But the > > project needs the XADataSource, so I configure the XADataSource in

XADataSource error in tomcat 5.5 with MySQL 5.1

2006-02-08 Thread Jack Wang
I can get connect from Resource configured in tomcat with type="javax.sql.DataSource". But the project needs the XADataSource, so I configure the XADataSource in tomcat's server.xml with following: - or - But both can't