-
1. Re: Teiid 8.4 -- org.teiid.adminapi.Admin.deleteDataSource( )
rareddy Mar 4, 2014 8:45 PM (in response to jane_lj)Teiid does not provide deleting resource-adapters. Teiid controls the "connection" portion of the resources. Deleting the whole resource-adapter is akin to deleting a JDBC driver in the case of datasources. You can easily do this using CLI. You it is possible to add extensions to the admin api to do also.
Ramesh..
-
2. Re: Teiid 8.4 -- org.teiid.adminapi.Admin.deleteDataSource( )
jane_lj Mar 5, 2014 10:47 AM (in response to rareddy)Thank you, Ramesh.
Ok, so we think in another way.
To reuse that resource-adapter, which API should we use to create connection portion, but not re-create the same resource-adapter?
We tried Admin.createDataSource( ), it always complains the data source already exists. So looks like we need to use a different API to create connection portion only.
Thanks.
-
3. Re: Teiid 8.4 -- org.teiid.adminapi.Admin.deleteDataSource( )
rareddy Mar 6, 2014 1:57 PM (in response to jane_lj)There is no API function to add "resource-adapter", just like there is no API function to define a jdbc driver. You can deploy a JDBC driver or you can deploy a resource-adapter (.rar) file using "deploy", and use the names of the files as the module names for creating the data sources on top of it.
But, there is bug in the JBoss AS7, that only allows one connection per .rar file, to workaround it, we manually defined "resource-adapter" definitions in the configurations and add data sources on it using the API multiple times.
Ramesh..