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:
>
> >
> >
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
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
> 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
--- 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
--- "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
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