Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-15703

[CD14] OpenShift "Runtime Artifacts" chapter Datasource Environment File example wrong source code path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Optional Optional
    • None
    • 7.2.0.CD14
    • Documentation
    • None

      The Example: Datasource Environment File

      https://doc-stage.usersys.redhat.com/documentation/en-us/jboss_enterprise_application_platform_continuous_delivery/14/html-single/getting_started_with_jboss_eap_for_openshift_container_platform/#datasources

      # derby datasource
      ACCOUNTS_DERBY_DATABASE=accounts
      ACCOUNTS_DERBY_JNDI=java:/accounts-ds
      ACCOUNTS_DERBY_DRIVER=derby
      ACCOUNTS_DERBY_USERNAME=derby
      ACCOUNTS_DERBY_PASSWORD=derby
      ACCOUNTS_DERBY_TX_ISOLATION=TRANSACTION_READ_UNCOMMITTED
      ACCOUNTS_DERBY_JTA=true
      
      # Connection info for xa datasource
      ACCOUNTS_DERBY_XA_CONNECTION_PROPERTY_DatabaseName=/home/jboss/source/data/databases/derby/accounts
      
      # _HOST and _PORT are required, but not used
      ACCOUNTS_DERBY_SERVICE_HOST=dummy
      ACCOUNTS_DERBY_SERVICE_PORT=1527
      

      the path /home/jboss/source does not contain sources by default. Since CD14 the path is in /tmp/src inside s2i-built images by default, so the example should be updated. Using the example from the datavirt quickstarts

      https://github.com/jboss-openshift/openshift-quickstarts/blob/master/datavirt64/dynamicvdb-datafederation/datasources.env

      a reasonable example would be to use the data dir inside the opt/eap/standalone/data :

      ACCOUNTS_DERBY_XA_CONNECTION_PROPERTY_DatabaseName=/opt/eap/standalone/data/databases/derby/accounts
      

              Unassigned Unassigned
              maschmid@redhat.com Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: