public static XBDatabaseAccessor createInstance(Global glob, String confType, String confVersion, Properties properties)
throws XmlBlasterException {
if (confType == null) confType = "JDBC";
if (confVersion == null) confVersion = "1.0";
QueuePluginManager pluginManager = new QueuePluginManager(glob);
PluginInfo pluginInfo = new PluginInfo(glob, pluginManager, confType, confVersion);
// clone the properties (to make sure they only belong to us) ...
java.util.Properties ownProperties = (java.util.Properties)pluginInfo.getParameters().clone();
//overwrite our onw properties ...
if (properties != null) {
java.util.Enumeration enumer = properties.keys();
while (enumer.hasMoreElements()) {
String key = (String) enumer.nextElement();
ownProperties.put(key, properties.getProperty(key));
}
}
// determine which jdbc manager class to use
String queueClassName = pluginInfo.getClassName();
if ("org.xmlBlaster.util.queue.jdbc.JdbcQueuePlugin".equals(queueClassName)) {
throw new XmlBlasterException(glob, ErrorCode.INTERNAL_NOTIMPLEMENTED, ME, "org.xmlBlaster.util.queue.jdbc.JdbcQueuePlugin is not supported anymore");
}
else if ("org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin".equals(queueClassName)) {
throw new XmlBlasterException(glob, ErrorCode.INTERNAL_NOTIMPLEMENTED, ME, "org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin is not supported anymore");