* @return the session
*/
public Session getSession(Map properties) {
ClusterConnection clusterConnection = getClusterConnectionFromPool();
try {
Db db = null;
synchronized(this) {
checkConnection(clusterConnection);
db = clusterConnection.createDb(CLUSTER_DATABASE, CLUSTER_MAX_TRANSACTIONS);
}
Dictionary dictionary = db.getDictionary();
return new SessionImpl(this, properties, db, dictionary);
} catch (ClusterJException ex) {
throw ex;
} catch (Exception ex) {
throw new ClusterJFatalException(