0 Replies Latest reply on Jul 12, 2017 3:43 PM by metodski

    Recreating a datasource with cli and then trying to use it.

    metodski

      So we support multi tenancy and each tenant has a couple of datasources. We want to support runtime tenant management meaning that we should allow tenant creation and deletion while our app is running but i'm running into a problem.

      Creating a datasource is fine, deleting it is also fine using the java cli api but if i try to create the datasource, delete it and then create the same datasource again.. well it is created but the processes in our app that use the entity managers that use that datasource start throwing exceptions that the connection factory has already been closed.

       

      Caused by: javax.resource.ResourceException: IJ000470: You are trying to use a connection factory that has been shut down: java:jboss/datasources/come.onm_camunda

        at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:725)

        at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:138)

        ... 313 more

       

      Currently running on wildfly 9.