Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12774

Credential store support example for datasource is incomplete

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 12.1.0.Final
    • None
    • None
    • None

      This example https://github.com/infinispan/infinispan/blob/master/documentation/src/main/asciidoc/topics/config_examples/server_credentials_datasource.xml is incomplete, it's mandatory to use <connection-pool> tag.
      the full example should be:

      <data-sources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="urn:infinispan:server:{schemaversion} https://infinispan.org/schemas/infinispan-server-{schemaversion}.xsd"
                    xmlns="urn:infinispan:server:{schemaversion}">
         <data-source name="postgres" jndi-name="jdbc/postgres">
            <connection-factory driver="org.postgresql.Driver"
                                username="dbuser" <1>
                                url="${org.infinispan.server.test.postgres.jdbcUrl}">
               <credential-reference store="credentials" alias="dbpassword"/> <2>
            </connection-factory>
           <connection-pool max-size="10" min-size="1" background-validation="1000" idle-removal="1" initial-size="1" leak-detection="10000"/>
         </data-source>
      </data-sources>
      

              gustavolira Gustavo Lira Silva
              gustavolira Gustavo Lira Silva
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: