prefill does not work for the last url in connection-url when HA Datasource failover is enabled in EAP 6

Solution Unverified - Updated -

Issue

<prefill> setting does not work for the last url in <connection-url> when HA Datasource failover is enabled like the following:

  <datasource jta="true" jndi-name="java:jboss/PostgresDS" pool-name="PostgresDS" enabled="true">
      <connection-url>jdbc:postgresql://node1:5432/exampledb|jdbc:postgresql://node2:5432/exampledb</connection-url>                                                                                                                                                                               
      <driver>postgresql</driver>
      <url-delimiter>|</url-delimiter>
      <pool>
          <min-pool-size>10</min-pool-size>
          <max-pool-size>10</max-pool-size>
          <prefill>true</prefill>
          <use-strict-min>true</use-strict-min>
      </pool>
      <security>
          <user-name>postgres</user-name>
          <password>password</password>
      </security>
      <validation>
          <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker"/>
          <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter"/>
      </validation>
  </datasource>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.