getConnectionPoolConfig( "ConnectionPool-Shared", cassandraFig.getConnections()); getCluster( cassandraFig.getClusterName(), config, sharedPoolConfig ); addKeyspace( sharedCluster, cassandraFig.getApplicationKeyspace()); addKeyspace( sharedCluster, cassandraFig.getLocksKeyspace()); } catch (Exception e) { throw new RuntimeException( "Unable to create keyspace clients"); getConnectionPoolConfig( "ConnectionPool-Application", cassandraFig.getConnections()); getConnectionPoolConfig( "ConnectionPool-Locks", cassandraFig.getConnectionsLocks()); getCluster( cassandraFig.getClusterName(), config, applicationPoolConfig ); getCluster( cassandraFig.getClusterName() + "-Locks", config, locksPoolConfig ); addKeyspace( applicationCluster, cassandraFig.getApplicationKeyspace()); addKeyspace( locksCluster, cassandraFig.getLocksKeyspace()); } catch (Exception e) { throw new RuntimeException( "Unable to create keyspace clients");