3 Replies Latest reply on Mar 6, 2014 1:57 PM by Ramesh Reddy

    Teiid 8.4 -- org.teiid.adminapi.Admin.deleteDataSource(  )

    jane_lj Novice

      Hi,

       

      We try to delete the following section from standalonexxx.xml for unregister:

       

      <resource-adapter id="test.rar">

                          <archive>

                              test.rar

                          </archive>

                          <transaction-support>NoTransaction</transaction-support>

                          <connection-definitions>

                              <connection-definition class-name="xxx" jndi-name="java:/xxx" enabled="true" pool-name="xxx">

                                  <config-property name="port">

                                      9910

                                  </config-property>

                                  <config-property name="importBatchSize">

                                      3000

                                  </config-property>

                                  <config-property name="hostName">

                                      host123

                                  </config-property>

                              </connection-definition>

                          </connection-definitions>

      </resource-adapter>

       

      We tried this method Admin.deleteDataSource(String deployedName), but only the section of <connection-definition> is deleted.

       

      How can we delete the whole section of <resource-adapter>?

       

       

      Thanks a lot!