This is my mysql-ds file

<datasources>
  |   <local-tx-datasource>
  |     <jndi-name>MySqlDS</jndi-name>
  |     
<connection-url>jdbc:mysql://mysql-hostname:3306/jbossdb</connection-url>
  |     <driver-class>com.mysql.jdbc.Driver</driver-class>
  |     <user-name>jboss</user-name>
  |     <password>jboss</password>
  |     
<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) -->
  |     <metadata>
  |        <type-mapping>mySQL</type-mapping>
  |     </metadata>
  |   </local-tx-datasource>
  | 
  | <local-tx-datasource>
  |                 <jndi-name>Publication</jndi-name>
  |                 
<connection-url>jdbc:mysql://mysql-hostname:3306/ld_publication</connection-url>
  |                 <driver-class>com.mysql.jdbc.Driver</driver-class>
  |                 <user-name>java</user-name>
  |                 <password>java</password>
  |                 <min-pool-size>5</min-pool-size>
  |                 <max-pool-size>15</max-pool-size>
  |                 <idle-timeout-minutes>5</idle-timeout-minutes>
  |                 
<exception-sorter-class-name>com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter</exception-sorter-class-name>
  |                 
<valid-connection-checker-class-name>com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker</valid-connection-checker-class-name>
  | 
  | </local-tx-datasource>
  | 
  | </datasources>

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047465#4047465

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047465
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to