import java.sql.*; import java.util.Iterator; import java.util.Map; import java.util.Collection; import javax.security.auth.Subject; import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import com.adeptia.indigo.security.AuthUtil; import com.adeptia.indigo.services.transport.connector.DatabaseConnectionInfo; import com.adeptia.indigo.storage.Entity; import com.adeptia.indigo.storage.EntityManager; import com.adeptia.indigo.storage.EntityManagerFactory; import com.adeptia.indigo.storage.StorageException; import com.adeptia.indigo.utils.IndigoException; import com.adeptia.indigo.utils.JdbcUtils; import com.adeptia.indigo.utils.HandleJTADBConnection; //Logic to clear connection pool Map conMap = HandleJTADBConnection.getConnectionMap(); conMap.clear(); ArrayList tableName = context.get("Context_Variable");//Write the context variable here in which you are storing the table name's. for(int i = 0;i