[jboss-jira] [JBoss JIRA] Commented: (AS7-1232) :test-connection-in-pool is "useless"
Heiko Rupp (JIRA)
jira-events at lists.jboss.org
Wed Jul 13 02:49:23 EDT 2011
[ https://issues.jboss.org/browse/AS7-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613862#comment-12613862 ]
Heiko Rupp commented on AS7-1232:
---------------------------------
Couldn't you make the last also a "outcome => failure" with a failure description of "connection not valid" and perhaps a "rolled-back=>false". This way success is only returned if the connection is valid (default case) and otherwise return failure (for whatever reason).
> :test-connection-in-pool is "useless"
> -------------------------------------
>
> Key: AS7-1232
> URL: https://issues.jboss.org/browse/AS7-1232
> Project: Application Server 7
> Issue Type: Bug
> Components: JCA
> Affects Versions: 7.0.0.CR1
> Reporter: Heiko Rupp
> Assignee: Stefano Maestri
>
> I have defined a datasource like this:
> [domain at localhost:9999 data-source=postresDS] :read-resource
> {
> "outcome" => "success",
> "result" => {
> "connection-url" => "jdbc:yadayada",
> "driver-name" => "postgresql-9.0-801.jdbc4.jar",
> So obviously with an invalid driver.
> But still I get
> [domain at localhost:9999 data-source=postresDS] :test-connection-in-pool
> {
> "outcome" => "success",
> "result" => undefined
> }
> which makes imho no sense.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list