private void setDiagnosticContext(OpenJPAConfiguration conf) { LogFactory logFactory = conf.getLogFactory(); try { Method setter = AccessController.doPrivileged(J2DoPrivHelper. getDeclaredMethodAction(logFactory.getClass(), "setDiagnosticContext", new Class[]{String.class})); setter.invoke(logFactory, conf.getId()); } catch (Throwable t) { // no contextual logging } }
private void setDiagnosticContext(OpenJPAConfiguration conf) { LogFactory logFactory = conf.getLogFactory(); try { Method setter = AccessController.doPrivileged(J2DoPrivHelper. getDeclaredMethodAction(logFactory.getClass(), "setDiagnosticContext", new Class[]{String.class})); setter.invoke(logFactory, conf.getId()); } catch (Throwable t) { // no contextual logging } }
private void setDiagnosticContext(OpenJPAConfiguration conf) { LogFactory logFactory = conf.getLogFactory(); try { Method setter = AccessController.doPrivileged(J2DoPrivHelper. getDeclaredMethodAction(logFactory.getClass(), "setDiagnosticContext", new Class[]{String.class})); setter.invoke(logFactory, conf.getId()); } catch (Throwable t) { // no contextual logging } }
@Override public void initialize() { OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration(); PreparedQueryCache pqc = conf.getQuerySQLCacheInstance(); if (pqc == null) { throw new UserException(_loc.get("prep-query-cache-not-found")); } setPreparedQueryCache(pqc); setConfigId(conf.getId()); setContextRef(Integer.toString(System.identityHashCode(getContext()))); }
@Override public void initialize() { OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration(); PreparedQueryCache pqc = conf.getQuerySQLCacheInstance(); if (pqc == null) { throw new UserException(_loc.get("prep-query-cache-not-found")); } setPreparedQueryCache(pqc); setConfigId(conf.getId()); setContextRef(Integer.toString(System.identityHashCode(getContext()))); }
@Override public void initialize() { OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration(); PreparedQueryCache pqc = conf.getQuerySQLCacheInstance(); if (pqc == null) { throw new UserException(_loc.get("prep-query-cache-not-found")); } setPreparedQueryCache(pqc); setConfigId(conf.getId()); setContextRef(Integer.toString(System.identityHashCode(getContext()))); }
@Override public void initialize() { OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration(); PreparedQueryCache pqc = conf.getQuerySQLCacheInstance(); if (pqc == null) { throw new UserException(_loc.get("prep-query-cache-not-found")); } setPreparedQueryCache(pqc); setConfigId(conf.getId()); setContextRef(Integer.toString(System.identityHashCode(getContext()))); }
@Override public void initialize() { OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration(); DataCacheManager dcm = conf.getDataCacheManagerInstance(); QueryCache qc = dcm.getSystemQueryCache(); if (qc == null) { throw new UserException(_loc.get("query-cache-not-found")); } setQueryCache(qc); setConfigId(conf.getId()); setContextRef(Integer.toString(System.identityHashCode(getContext()))); }
@Override public void initialize() { OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration(); DataCacheManager dcm = conf.getDataCacheManagerInstance(); QueryCache qc = dcm.getSystemQueryCache(); if (qc == null) { throw new UserException(_loc.get("query-cache-not-found")); } setQueryCache(qc); setConfigId(conf.getId()); setContextRef(Integer.toString(System.identityHashCode(getContext()))); }
@Override public void initialize() { OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration(); DataCacheManager dcm = conf.getDataCacheManagerInstance(); QueryCache qc = dcm.getSystemQueryCache(); if (qc == null) { throw new UserException(_loc.get("query-cache-not-found")); } setQueryCache(qc); setConfigId(conf.getId()); setContextRef(Integer.toString(System.identityHashCode(getContext()))); }
@Override public void initialize() { OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration(); DataCacheManager dcm = conf.getDataCacheManagerInstance(); QueryCache qc = dcm.getSystemQueryCache(); if (qc == null) { throw new UserException(_loc.get("query-cache-not-found")); } setQueryCache(qc); setConfigId(conf.getId()); setContextRef(Integer.toString(System.identityHashCode(getContext()))); }
@Override public void initialize() { Options opts = new Options(); if (getOptions() != null) { opts = Configurations.parseProperties(getOptions()); } String cacheName = opts.getProperty("name",null); OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration(); DataCacheManager dcm = conf.getDataCacheManagerInstance(); DataCache dc = null; if (cacheName == null || cacheName.trim().length() == 0) { dc = dcm.getSystemDataCache(); } else { dc = dcm.getDataCache(cacheName); } if (dc == null) { throw new UserException(_loc.get("data-cache-not-found")); } setDataCache(dc); setDataCacheManager(dcm); setConfigId(conf.getId()); setContextRef(Integer.toString(System.identityHashCode(getContext()))); }
@Override public void initialize() { Options opts = new Options(); if (getOptions() != null) { opts = Configurations.parseProperties(getOptions()); } String cacheName = opts.getProperty("name",null); OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration(); DataCacheManager dcm = conf.getDataCacheManagerInstance(); DataCache dc = null; if (cacheName == null || cacheName.trim().length() == 0) { dc = dcm.getSystemDataCache(); } else { dc = dcm.getDataCache(cacheName); } if (dc == null) { throw new UserException(_loc.get("data-cache-not-found")); } setDataCache(dc); setDataCacheManager(dcm); setConfigId(conf.getId()); setContextRef(Integer.toString(System.identityHashCode(getContext()))); }
@Override public void initialize() { Options opts = new Options(); if (getOptions() != null) { opts = Configurations.parseProperties(getOptions()); } String cacheName = opts.getProperty("name",null); OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration(); DataCacheManager dcm = conf.getDataCacheManagerInstance(); DataCache dc = null; if (cacheName == null || cacheName.trim().length() == 0) { dc = dcm.getSystemDataCache(); } else { dc = dcm.getDataCache(cacheName); } if (dc == null) { throw new UserException(_loc.get("data-cache-not-found")); } setDataCache(dc); setDataCacheManager(dcm); setConfigId(conf.getId()); setContextRef(Integer.toString(System.identityHashCode(getContext()))); }
@Override public void initialize() { Options opts = new Options(); if (getOptions() != null) { opts = Configurations.parseProperties(getOptions()); } String cacheName = opts.getProperty("name",null); OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration(); DataCacheManager dcm = conf.getDataCacheManagerInstance(); DataCache dc = null; if (cacheName == null || cacheName.trim().length() == 0) { dc = dcm.getSystemDataCache(); } else { dc = dcm.getDataCache(cacheName); } if (dc == null) { throw new UserException(_loc.get("data-cache-not-found")); } setDataCache(dc); setDataCacheManager(dcm); setConfigId(conf.getId()); setContextRef(Integer.toString(System.identityHashCode(getContext()))); }
_log.warn(_loc.get("retain-always", conf.getId()));
_log.warn(_loc.get("retain-always", conf.getId()));
_log.warn(_loc.get("cm-retain-always",conf.getId()));
_log.warn(_loc.get("cm-retain-always",conf.getId()));
_log.warn(_loc.get("cm-retain-always",conf.getId()));