Class[] ifaces = {java.sql.DatabaseMetaData.class};
ArrayList interceptorClasses = new ArrayList();
interceptorClasses.add(ClientMethodInterceptor.class);
interceptorClasses.add(InvokerInterceptor.class);
ClassLoader loader = Thread.currentThread().getContextClassLoader();
GenericProxyFactory proxyFactory = new GenericProxyFactory();
Object dbMetaDataProxy = proxyFactory.createProxy(cacheID, targetName,
delegateInvoker, jndiName, proxyBindingName, interceptorClasses,
loader, ifaces);
databaseMetaDataMap.put(cacheID, dbMetaData);
log.debug("Created DatabaseMetadata proxy for invoker=" + jmxInvokerName
+ ", targetName=" + targetName + ", cacheID=" + cacheID);