1 Reply Latest reply on Apr 9, 2019 11:36 AM by rareddy

    AdminAPI, Resource Adapter per Connection

    mtawk

      We are connecting to Cassandra through Teiid.

      Unlike AdminConsole, we are not able to add a connection-definition via AdminAPI to an existing Resource Adapter.

      So we have to create a Resource Adapter for each new Cassandra connection.

      Is there a way to add a connection-definition to an existing Resource Adapter through AdminAPI like AdminConsole?

        • 1. Re: AdminAPI, Resource Adapter per Connection
          rareddy

          Due to a long-standing issue with JCA spec and Wildfly implementation, one cannot change existing JCA connection. You would need to add a new (different name) resource-adapter and connection based on that resource adapter. The createDataSource method on AdminAPI should automatically handle this for you as long as you provide a new name with original rar name. Unfortunately, that means redeploy of the VDB to update the JNDI name. I guess you try extend this method to use the same JNDI name, but only after deleting the previous resource-adapter (not sure if this works but simple to try). I do not think we want to consider this as an enhancement on Teiid, but could be your extension.