Properties properties = arjPropertyManager.propertyManager.getProperties();
arjPropertyManager.propertyManager.setProperty(com.arjuna.ats.arjuna.common.Environment.XA_NODE_IDENTIFIER, txnMgrUniqueName); arjPropertyManager.propertyManager.setProperty("com.arjuna.ats.arjuna.recovery.transactionStatusManagerPort", props.getProperty(TransactionService.TXN_STATUS_PORT, TransactionService.DEFAULT_TXN_STATUS_PORT)) ; //$NON-NLS-1$ jtaPropertyManager.propertyManager.setProperty(Environment.JTA_TSR_IMPLEMENTATION, TransactionSynchronizationRegistryImple.class.getName()); jtaPropertyManager.propertyManager.setProperty(Environment.SUPPORT_SUBTRANSACTIONS, NO); jtaPropertyManager.propertyManager.setProperty(Environment.JTA_TM_IMPLEMENTATION, TransactionManagerImple.class.getName()); jtaPropertyManager.propertyManager.setProperty(Environment.JTA_UT_IMPLEMENTATION, UserTransactionImple.class.getName()); jtaPropertyManager.propertyManager.setProperty(Environment.XA_RECOVERY_NODE, "*"); //$NON-NLS-1$ jtaPropertyManager.propertyManager.setProperty(XARecoveryModule.XARecoveryPropertyNamePrefix+"MM", XAConnectorRecovery.class.getName()); //$NON-NLS-1$
/** * Return the port specified by the property * com.arjuna.ats.internal.arjuna.recovery.recoveryPort, * otherwise return a default port. */ public static final ServerSocket getServerSocket () throws IOException { if (_socket == null) { // TODO these properties should be documented!! String tsmPortStr = arjPropertyManager.propertyManager.getProperty(com.arjuna.ats.arjuna.common.Environment.RECOVERY_MANAGER_PORT); int port = 0; if (tsmPortStr != null) { try { port = Integer.parseInt( tsmPortStr ); } catch (Exception ex) { if (tsLogger.arjLoggerI18N.isWarnEnabled()) { tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery_8", new Object[]{ex}); } } } _socket = new ServerSocket(port); } return _socket; }