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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content