[jboss-user] [EJB 3.0] - Re: Persistence in EJB3
masoodah@mdsit.com
do-not-reply at jboss.com
Mon Jan 28 08:58:25 EST 2008
Yes
I have mysql-ds.xml in my default/deploy folder. HAve I configures it right. Pl. let me know. - Thanks
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mysql-ds.xml 41016 2006-02-07 14:23:00Z acoliver $ -->
<!-- Datasource config for MySQL using 3.0.9 available from:
http://www.mysql.com/downloads/api-jdbc-stable.html
-->
<local-tx-datasource>
<jndi-name>DPDS</jndi-name>
<!--
<connection-url>jdbc:mysql://mysql-hostname:3306/jbossdb</connection-url>
-->
<connection-url>jdbc:mysql://localhost:3306/dreamPlay</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>dreamplay</user-name>
dreamplay
<min-pool-size>2</min-pool-size>
<max-pool-size>10</max-pool-size>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<!-- should only be used on drivers after 3.22.1 with "ping" support
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
-->
<!-- sql to call when connection is created
<new-connection-sql>some arbitrary sql</new-connection-sql>
-->
<!-- sql to call on an existing pooled connection when it is obtained from pool - MySQLValidConnectionChecker is preferred for newer drivers
<check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
-->
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<type-mapping>mySQL</type-mapping>
</local-tx-datasource>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124060#4124060
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124060
More information about the jboss-user
mailing list