0 Replies Latest reply on Sep 19, 2014 5:38 AM by Harish Venkat

    How can i call the custom properties of a datasource to a java class

    Harish Venkat Newbie

      I had a database configuration in domain.xml

      <datasource jta="false" jndi-name="java:jboss/datasources/ResDs2" pool-name="OOA2" enabled="true" spy="true" use-ccm="false">

                              <connection-url>jdbc:oracle:thin:@//XXXXXXXXX/OOA2</connection-url>

                              <connection-property name="useExtendedJndiPropertyNames">

                                  false

                              </connection-property>

                              <connection-property name="zoneCode">

                                  WDC-TDE

                              </connection-property>

                              <connection-property name="appCode">

                                  ESFBAK90043

                              </connection-property>

                              <connection-property name="env">

                                  DEV

                              </connection-property>

                              <connection-property name="dataSourceImplementationType">

                                  POOLED

                              </connection-property>

                              <connection-property name="actionQualifier">

                                  MASTER

                              </connection-property>

                              <connection-property name="dataSourceName">

                                  esftdedev

                              </connection-property>

                              <connection-property name="resiliencyDataSourcesStr">

                                  Resiliency.zoneCode=XXX;Resiliency.server=OOA2;Resiliency.user=AAA;Resiliency.url=jdbc:XXXXXXXXX:1521/OOA2;Resiliency.useMatrix=true

                              </connection-property>

                              <driver>ResDs</driver>

                              <security>

                                  <user-name>AAA</user-name>

                                  <password>CCC.2</password>

                              </security>

                              <validation>

                                  <validate-on-match>false</validate-on-match>

                                  <background-validation>false</background-validation>

                              </validation>

                              <statement>

                                  <share-prepared-statements>false</share-prepared-statements>

                              </statement>

                          </datasource>

       

       

      I want to use these Configuration in a java class How can i do it


      Thanks in advance