if(ConnectorsUtil.belongsToSystemRA(resourceAdapterName)){
ClassLoader classLoader = ConnectorRuntime.getRuntime().getConnectorClassLoader();
loadedClass = classLoader.loadClass(className);
}else{
//try loading via ClassLoader of the RAR from ConnectorRegistry
ConnectorApplication app = ConnectorRegistry.getInstance().getConnectorApplication(resourceAdapterName);
if(app == null ){
_logger.log(Level.FINE, "unable to load class [ " + className + " ] of RAR " +
"[ " + resourceAdapterName + " ]" +
" from server instance, trying other instances' deployments");
//try loading via RARUtils
loadedClass = RARUtils.loadClassFromRar(resourceAdapterName, className);
}else{
loadedClass = app.getClassLoader().loadClass(className);
}
}
} catch (ClassNotFoundException e1) {
_logger.log(Level.FINE, "rardeployment.class_not_found",className);
throw new ConnectorRuntimeException("Class Not Found : " + className);