users@glassfish.java.net

Re: MySQL XADataSource doesn't work

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Feb 2009 11:54:56 PST

Running quiet a while with mysql and an XADataSource:

I put mysql-connector-java-5.1.7-bin.jar in the domain/lib directory. Configure XADatasource with one property:

<jdbc-connection-pool allow-non-component-callers="false" associate-with-thr
ead="false" connection-creation-retry-attempts="0" connection-creation-retry-int
erval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in
-seconds="0" connection-validation-method="auto-commit" datasource-classname="co
m.mysql.jdbc.jdbc2.optional.MysqlXADataSource" fail-all-connections="false" idle
-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation
-level-guaranteed="false" lazy-connection-association="false" lazy-connection-en
listment="false" match-connections="false" max-connection-usage-count="0" max-po
ol-size="32" max-wait-time-in-millis="60000" name="memberpool" non-transactional
-connections="false" pool-resize-quantity="2" res-type="javax.sql.XADataSource"
statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-peri
od-in-seconds="0" wrap-jdbc-objects="false">
      <property name="URL" value="jdbc:mysql://localhost:3306/yourdatabase?user=thedbuser&amp;password=thepassword"/>
    </jdbc-connection-pool>

Is running without a problem, btw I never found an mysql driver in glassfish.

Johan
[Message sent by forum member 'jcstover' (jcstover)]

http://forums.java.net/jive/thread.jspa?messageID=330898