mirror of https://github.com/apache/activemq.git
made the adapter class configurable on the <journaledJDBC adapterClass="...."/>
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372799 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
885db67aaa
commit
3d18a3dc7b
|
@ -22,6 +22,7 @@ import java.io.IOException;
|
|||
import org.activeio.journal.Journal;
|
||||
import org.activeio.journal.active.JournalImpl;
|
||||
import org.apache.activemq.memory.UsageManager;
|
||||
import org.apache.activemq.store.jdbc.JDBCAdapter;
|
||||
import org.apache.activemq.store.jdbc.JDBCPersistenceAdapter;
|
||||
import org.apache.activemq.store.journal.JournalPersistenceAdapter;
|
||||
import org.apache.activemq.store.journal.QuickJournalPersistenceAdapter;
|
||||
|
@ -171,6 +172,22 @@ public class DefaultPersistenceAdapterFactory implements PersistenceAdapterFacto
|
|||
this.useQuickJournal = useQuickJournal;
|
||||
}
|
||||
|
||||
public JDBCAdapter getAdapter() throws IOException {
|
||||
return jdbcAdapter.getAdapter();
|
||||
}
|
||||
|
||||
public String getAdapterClass() {
|
||||
return jdbcAdapter.getAdapterClass();
|
||||
}
|
||||
|
||||
public void setAdapter(JDBCAdapter adapter) {
|
||||
jdbcAdapter.setAdapter(adapter);
|
||||
}
|
||||
|
||||
public void setAdapterClass(String adapterClass) {
|
||||
jdbcAdapter.setAdapterClass(adapterClass);
|
||||
}
|
||||
|
||||
// Implementation methods
|
||||
// -------------------------------------------------------------------------
|
||||
protected DataSource createDataSource() throws IOException {
|
||||
|
|
Loading…
Reference in New Issue