config.setJournalDirectory(journalDir);
config.setPagingDirectory(pagingDir);
config.setLargeMessagesDirectory(largeMessagesDir);
config.setJournalType(JournalType.NIO);
final ExecutorService executor = Executors.newFixedThreadPool(1);
ExecutorFactory executorFactory = new ExecutorFactory()
{
public Executor getExecutor()
{
return executor;
}