19 package com.mysql.clusterj.openjpa;
21 import com.mysql.clusterj.core.util.I18NHelper;
22 import com.mysql.clusterj.core.util.Logger;
23 import com.mysql.clusterj.core.util.LoggerFactoryService;
27 import org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory;
29 import org.apache.openjpa.kernel.Bootstrap;
30 import org.apache.openjpa.kernel.StoreManager;
32 import org.apache.openjpa.lib.conf.ConfigurationProvider;
38 @SuppressWarnings(
"serial")
62 Map<String, Object> props = cp.getProperties();
63 Object key = toPoolKey(props);
65 getPooledFactoryForKey(key);
69 factory = newInstance(cp);
80 if (logger.isInfoEnabled()) {
82 buffer.append(
"connectString: " + conf.getConnectString());
83 buffer.append(
"; connectDelay: " + conf.getConnectDelay());
84 buffer.append(
"; connectVerbose: " + conf.getConnectVerbose());
85 buffer.append(
"; connectTimeoutBefore: " + conf.getConnectTimeoutBefore());
86 buffer.append(
"; connectTimeoutAfter: " + conf.getConnectTimeoutAfter());
87 buffer.append(
"; maxTransactions: " + conf.getMaxTransactions());
88 buffer.append(
"; default database: " + conf.getDatabase());
89 logger.info(buffer.toString());
94 protected StoreManager newStoreManager() {