Skip to content

Commit

Permalink
[JBTM-2470] Start embedded RM if -recovery is passed to transaction s…
Browse files Browse the repository at this point in the history
…ever
  • Loading branch information
gytis committed Aug 3, 2015
1 parent 9e530d2 commit 37b096f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

package com.arjuna.ats.jts;

import com.arjuna.ats.arjuna.recovery.RecoveryManager;
import com.arjuna.ats.internal.jts.ORBManager;
import com.arjuna.common.util.ConfigurationInfo;
import com.arjuna.orbportability.OA;
Expand Down Expand Up @@ -93,7 +94,7 @@ static void doWork (String[] args, boolean exitOnComplete) throws Exception
printReady = true;
if (args[i].compareTo("-help") == 0)
{
System.out.println("Usage: [-otsname <name>] [-help] [-version]");
System.out.println("Usage: [-otsname <name>] [-help] [-version] [-recovery]");

if (exitOnComplete)
return;
Expand All @@ -109,6 +110,10 @@ static void doWork (String[] args, boolean exitOnComplete) throws Exception
else
System.exit(0);
}

if (args[i].compareTo("-recovery") == 0) {
RecoveryManager.manager().startRecoveryManagerThread();
}
}

com.arjuna.ats.internal.jts.orbspecific.TransactionFactoryImple theOTS = null;
Expand Down

0 comments on commit 37b096f

Please sign in to comment.