Search in sources :

Example 6 with LocalTxQueueTransactionJournal

use of org.mule.runtime.core.internal.util.journal.queue.LocalTxQueueTransactionJournal in project mule by mulesoft.

the class TransactionalQueueManager method initialise.

@Override
public void initialise() throws InitialisationException {
    String workingDirectory = getMuleContext().getConfiguration().getWorkingDirectory();
    int queueTransactionFilesSizeInMegabytes = getMuleContext().getConfiguration().getMaxQueueTransactionFilesSizeInMegabytes();
    localTxTransactionJournal = new LocalTxQueueTransactionJournal(workingDirectory + File.separator + "queue-tx-log", getMuleContext(), queueTransactionFilesSizeInMegabytes);
    localTxQueueTransactionRecoverer = new LocalTxQueueTransactionRecoverer(localTxTransactionJournal, this);
    xaTransactionJournal = new XaTxQueueTransactionJournal(workingDirectory + File.separator + "queue-xa-tx-log", getMuleContext(), queueTransactionFilesSizeInMegabytes);
    xaTransactionRecoverer = new XaTransactionRecoverer(xaTransactionJournal, this);
}
Also used : LocalTxQueueTransactionRecoverer(org.mule.runtime.core.internal.util.journal.queue.LocalTxQueueTransactionRecoverer) XaTxQueueTransactionJournal(org.mule.runtime.core.internal.util.journal.queue.XaTxQueueTransactionJournal) XaTransactionRecoverer(org.mule.runtime.core.internal.util.xa.XaTransactionRecoverer) LocalTxQueueTransactionJournal(org.mule.runtime.core.internal.util.journal.queue.LocalTxQueueTransactionJournal)

Aggregations

LocalTxQueueTransactionJournal (org.mule.runtime.core.internal.util.journal.queue.LocalTxQueueTransactionJournal)6 Test (org.junit.Test)4 Serializable (java.io.Serializable)3 CoreEvent (org.mule.runtime.core.api.event.CoreEvent)3 LocalTxQueueTransactionRecoverer (org.mule.runtime.core.internal.util.journal.queue.LocalTxQueueTransactionRecoverer)3 DefaultQueueConfiguration (org.mule.runtime.core.api.util.queue.DefaultQueueConfiguration)2 DefaultMuleConfiguration (org.mule.runtime.core.api.config.DefaultMuleConfiguration)1 XaTxQueueTransactionJournal (org.mule.runtime.core.internal.util.journal.queue.XaTxQueueTransactionJournal)1 XaTransactionRecoverer (org.mule.runtime.core.internal.util.xa.XaTransactionRecoverer)1