This content has been marked as final.
Show 2 replies
-
1. Re: Can JNDI ds reconnect automatically after DB server rest
jaikiran Jun 29, 2009 1:41 PM (in response to allen_lei)This question is more appropriate in the JCA forum http://www.jboss.org/index.html?module=bb&op=viewforum&f=136. Here's a wiki entry which has an explanation for your question:
http://www.jboss.org/community/wiki/WhatHappensToJBossIfIRestartTheDatabase -
2. Re: Can JNDI ds reconnect automatically after DB server rest
allen_lei Jun 30, 2009 6:02 AM (in response to allen_lei)I see,thanks.
Next time i will post my new topic about JCA in the JCA forum.
And i hava a question that it still work when not use jdbc driver ping and <check-valid-connection-sql> statement.Just as following:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE datasources PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN" "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"> <datasources> <local-tx-datasource> <jndi-name>testDs</jndi-name> <connection-url>jdbc:mysql://localhost:3306/test</connection-url> <driver-class>com.mysql.jdbc.Driver</driver-class> <user-name>root</user-name> <password>mysql</password> <min-pool-size>20</min-pool-size> <max-pool-size>50</max-pool-size> <metadata> <type-mapping>mySQL</type-mapping> </metadata> </local-tx-datasource> </datasources>
Is that right? Or is it the default mechanism of JBoss JNDI ds connection pooling?
Your replay will by most appreciated.