TransactionService txnService = null;
txnService =
ServerBeansFactory.getTransactionServiceBean(ctx);
PluggableFeatureFactory pff = ApplicationServer.getServerContext().
getPluggableFeatureFactory();
TransactionRecovery transactionRecoveryService =
pff.getTransactionRecoveryService();
//transactionRecoveryService.start(context) ;
RecoveryManager.registerTransactionRecoveryService(transactionRecoveryService);
if (!txnService.isAutomaticRecovery()) {
return;