Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.06 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <transaction-service>
  3. <properties name="documentation">
  4. <!--
  5. This is the JBossTS configuration file. Note that starting with JBossTS 4.6
  6. the names jbossjta-properties.xml and jbossjts-properties.xml are obsolete.
  7.  
  8. Both the JTA and JTS versions of JBossTS now read their configuration from
  9. jbossts-properties.xml, although the contents of the file differs between
  10. the JTA and JTS. Care should be taken to use the correct version of the file.
  11.  
  12. ***************************
  13.  
  14. Property values may be literals or be tokens of the form ${p1[,p2][:v]}
  15. in which case the token values are substituted for the values of the corresponding system
  16. properties as follows:
  17.  
  18. - Any occurance of ${p} with the System.getProperty(p) value.
  19. If there is no such property p defined, then the ${p} reference will remain unchanged.
  20.  
  21. - If the property reference is of the form ${p:v} and there is no such property p,
  22. then the default value v will be returned.
  23.  
  24. - If the property reference is of the form ${p1,p2} or ${p1,p2:v} then
  25. the primary and the secondary properties will be tried in turn, before
  26. returning either the unchanged input, or the default value.
  27.  
  28. The property ${/} is replaced with System.getProperty("file.separator")
  29. value and the property ${:} is replaced with System.getProperty("path.separator").
  30.  
  31. Note this substitution applies to property values only at the point they are read from
  32. the config file. Tokens in system properties won't be substituted.
  33. -->
  34. </properties>
  35. <properties depends="common" name="arjuna">
  36. <!--
  37. Transaction Reaper Timeout (default is 120000 ms).
  38. -->
  39. <property
  40. name="com.arjuna.ats.arjuna.coordinator.txReaperTimeout" value="120000"/>
  41. <!--
  42. Transaction Reaper Mode, can be: PERIODIC or DYNAMIC. Default is DYNAMIC.
  43. -->
  44. <property name="com.arjuna.ats.arjuna.coordinator.txReaperMode" value="DYNAMIC"/>
  45. <!--
  46. Transaction Reaper Cancel Wait Period (default is 500 ms, min is 10 msecs).
  47. -->
  48. <property
  49. name="com.arjuna.ats.arjuna.coordinator.txReaperCancelWaitPeriod" value="500"/>
  50. <!--
  51. Transaction Reaper Cancel Fail Wait Period (default is 500 ms, min is 10 msecs).
  52. -->
  53. <property
  54. name="com.arjuna.ats.arjuna.coordinator.txReaperCancelFailWaitPeriod" value="500"/>
  55. <!--
  56. Transaction Reaper Zombie Max (default is 8).
  57. -->
  58. <property
  59. name="com.arjuna.ats.arjuna.coordinator.txReaperZombieMax" value="8"/>
  60. <!--
  61. (default is NO)
  62. -->
  63. <property name="com.arjuna.ats.arjuna.coordinator.asyncCommit" value="NO"/>
  64. <!--
  65. (default is NO)
  66. -->
  67. <property name="com.arjuna.ats.arjuna.coordinator.asyncPrepare" value="NO"/>
  68. <!--
  69. (default is YES)
  70. -->
  71. <property
  72. name="com.arjuna.ats.arjuna.coordinator.commitOnePhase" value="YES"/>
  73. <!--
  74. (default is defaultStore)
  75. -->
  76. <property name="com.arjuna.ats.arjuna.objectstore.localOSRoot" value="defaultStore"/>
  77. <!--
  78. default is under user.home - must be writeable!)
  79. -->
  80. <property
  81. name="com.arjuna.ats.arjuna.objectstore.objectStoreDir" value="PutObjectStoreDirHere"/>
  82. <!--
  83. (default is ON)
  84. -->
  85. <property
  86. name="com.arjuna.ats.arjuna.objectstore.objectStoreSync" value="ON"/>
  87. <!--
  88. (default is ShadowNoFileLockStore)
  89. -->
  90. <property
  91. name="com.arjuna.ats.arjuna.objectstore.objectStoreType" value="ShadowNoFileLockStore"/>
  92. <!--
  93. (default is 255)
  94. -->
  95. <property
  96. name="com.arjuna.ats.arjuna.objectstore.hashedDirectories" value="255"/>
  97. <!--
  98. (default is ON)
  99. -->
  100. <property
  101. name="com.arjuna.ats.arjuna.objectstore.transactionSync" value="ON"/>
  102. <!--
  103. (Must be unique across all Arjuna instances.)
  104. -->
  105. <property name="com.arjuna.ats.arjuna.xa.nodeIdentifier" value="${jboss.node.tx.id}"/>
  106. <property name="com.arjuna.ats.jta.xaRecoveryNode" value="${jboss.node.tx.id}"/>
  107. <!--
  108. Base port number for determining a unique number to associate with an instance of the transaction service
  109. (which is needed in order to support multiple instances on the same machine).
  110. Use the value 0 to allow the system to select the first available port number.
  111. If the port number is non-zero and the port is in use then the value will be incremented until either a successful binding
  112. to the loopback address is created or until the the maximum number of ports (specified by the
  113. com.arjuna.ats.internal.arjuna.utils.SocketProcessIdMaxPorts property) have been tried or until the port number
  114. reaches the maximum possible port number.
  115. -->
  116. <property
  117. name="com.arjuna.ats.internal.arjuna.utils.SocketProcessIdPort" value="0"/>
  118. <!--
  119. The maximum number of ports to try starting from the value specified by the property
  120. com.arjuna.ats.internal.arjuna.utils.SocketProcessIdPort. Any non-numeric or value less than 1 will
  121. defautl to 1.
  122. -->
  123. <property
  124. name="com.arjuna.ats.internal.arjuna.utils.SocketProcessIdMaxPorts" value="1"/>
  125. <!--
  126. Run the TransactionStatusManager to allow out-of-process recovery managers to query
  127. the status of transactions owned by this coordinator. Default is YES.
  128. This can be set to NO in cases where an ObjectStore is used only by one transaction manager
  129. and the recovery manager for that store is in the same JVM. In any other cases disabling the
  130. TransactionStatusManager may cause crash recovery to misbehave.
  131. -->
  132. <property
  133. name="com.arjuna.ats.arjuna.coordinator.transactionStatusManagerEnable" value="YES"/>
  134. <!-- property
  135. name="com.arjuna.ats.arjuna.coordinator.actionStore"
  136. value="HashedActionStore"
  137. value="JDBCActionStore"
  138. -->
  139. <!-- property
  140. name="com.arjuna.ats.arjuna.objectstore.jdbcTxDbAccess"
  141. value="JDBCAccess"
  142. -->
  143. <!-- property
  144. name="com.arjuna.ats.arjuna.objectstore.objectStoreType"
  145. value="ShadowNoFileLockStore"
  146. value="JDBCStore"
  147. -->
  148. <!-- property
  149. name="com.arjuna.ats.arjuna.objectstore.jdbcUserDbAccess"
  150. value="JDBCAccess"
  151. -->
  152. <!-- property
  153. name="com.arjuna.ats.arjuna.objectstore.jdbcPoolSizeInitial"
  154. value="1"
  155. -->
  156. <!-- property
  157. name="com.arjuna.ats.arjuna.objectstore.jdbcPoolSizeMaximum"
  158. value="1"
  159. -->
  160. <!-- property
  161. name="com.arjuna.ats.arjuna.objectstore.jdbcPoolPutConnections"
  162. value="false"
  163. -->
  164. <!-- property
  165. name="com.arjuna.ats.arjuna.internal.arjuna.objectstore.cacheStore.size"
  166. value=""
  167. -->
  168. <!-- property
  169. name="com.arjuna.ats.arjuna.internal.arjuna.objectstore.cacheStore.period"
  170. value=""
  171. -->
  172. <!--
  173. The location for creating temporary files, e.g., Uids.
  174. Default is under user.home.
  175. IMPORTANT: make sure the directory is lockable, e.g., /tmp on Unix
  176. may not be!
  177. -->
  178. <!--
  179. <property
  180. name="com.arjuna.ats.arjuna.common.varDir"
  181. value="var"/>
  182. -->
  183. <!-- Should beforeCompletion synchronizations be fired even when it is known the
  184. transaction can't commit e.g. is marked rollbackOnly? (default NO).
  185. Note that turning this on still does not guarantee the syncronizations will run in all cases
  186. e.g. explicit rollback() calls. JTS users should also take into account the supportRollbackSync
  187. property which affects both beforeCompletion and afterCompletion syncs. -->
  188. <!--
  189. <property name="com.arjuna.ats.coordinator.beforeCompletionWhenRollbackOnly" value="NO"/>
  190. -->
  191. </properties>
  192. <properties name="common">
  193. <!-- CLF 2.0 properties -->
  194. <property name="com.arjuna.common.util.logging.DebugLevel"
  195. type="System" value="0x00000000"/>
  196. <property name="com.arjuna.common.util.logging.FacilityLevel"
  197. type="System" value="0xffffffff"/>
  198. <property name="com.arjuna.common.util.logging.VisibilityLevel"
  199. type="System" value="0xffffffff"/>
  200. <property name="com.arjuna.common.util.logger" type="System" value="log4j"/>
  201. </properties>
  202. <properties depends="arjuna" name="txoj">
  203. <!--
  204. (default is LockStore of installation - must be writeable!)
  205. -->
  206. <!--
  207. <property
  208. name="com.arjuna.ats.txoj.lockstore.lockStoreDir"
  209. value="LockStore"/>
  210. -->
  211. <!--
  212. (default is BasicLockStore)
  213. -->
  214. <property name="com.arjuna.ats.txoj.lockstore.lockStoreType" value="BasicLockStore"/>
  215. <!--
  216. (default is NO)
  217. -->
  218. <property name="com.arjuna.ats.txoj.lockstore.multipleLockStore" value="NO"/>
  219. <!--
  220. (default is YES)
  221. -->
  222. <property name="com.arjuna.ats.txoj.lockstore.singleLockStore" value="YES"/>
  223. <!--
  224. (default is YES)
  225. -->
  226. <property
  227. name="com.arjuna.ats.txoj.lockstore.allowNestedLocking" value="YES"/>
  228. </properties>
  229. <properties depends="arjuna" name="jta">
  230. <!--
  231. Support subtransactions in the JTA layer?
  232. Default is NO.
  233. -->
  234. <property name="com.arjuna.ats.jta.supportSubtransactions" value="NO"/>
  235. <property name="com.arjuna.ats.jta.jtaTMImplementation" value="com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple"/>
  236. <!--
  237. com.arjuna.ats.internal.jta.transaction.jts.TransactionManagerImple
  238. -->
  239. <property name="com.arjuna.ats.jta.jtaUTImplementation" value="com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple"/>
  240. <!--
  241. com.arjuna.ats.internal.jta.transaction.jts.UserTransactionImple
  242. -->
  243. <property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.HORNETQ1"
  244. value="org.hornetq.jms.server.recovery.HornetQXAResourceRecovery;org.hornetq.core.remoting.impl.invm.InVMConnectorFactory"/>
  245. </properties>
  246. <properties depends="arjuna,txoj,jta" name="recoverymanager">
  247. <!--
  248. Properties used only by the RecoveryManager.
  249. -->
  250. <!--
  251. Periodic recovery settings.
  252. Time values in this section are in seconds.
  253. -->
  254. <!--
  255. Interval in seconds between initiating the periodic recovery modules.
  256. Default is 120 seconds.
  257. -->
  258. <property
  259. name="com.arjuna.ats.arjuna.recovery.periodicRecoveryPeriod" value="120"/>
  260. <!--
  261. Interval in seconds between first and second pass of periodic recovery.
  262. Default is 10 seconds.
  263. -->
  264. <property
  265. name="com.arjuna.ats.arjuna.recovery.recoveryBackoffPeriod" value="10"/>
  266. <!--
  267. The port number on which the recovery manager listens.
  268. -->
  269. <property name="com.arjuna.ats.arjuna.recovery.recoveryPort" value="4712"/>
  270. <!--
  271. The address on which the recovery manager listens.
  272. If running within an AS then the address the AS is bound to (jboss.bind.address) takes precedence
  273. -->
  274. <property name="com.arjuna.ats.arjuna.recovery.recoveryAddress" value=""/>
  275. <!--
  276. Periodic recovery modules to use. Invoked in sort-order of names.
  277. -->
  278. <property
  279. name="com.arjuna.ats.arjuna.recovery.recoveryExtension1" value="com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule"/>
  280. <property
  281. name="com.arjuna.ats.arjuna.recovery.recoveryExtension2" value="com.arjuna.ats.internal.txoj.recovery.TORecoveryModule"/>
  282. <property
  283. name="com.arjuna.ats.arjuna.recovery.recoveryExtension3" value="com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule"/>
  284. <!--
  285. Expired entry removal
  286. -->
  287. <!--
  288. Expiry scanners to use (order of invocation is random).
  289. Names must begin with "com.arjuna.ats.arjuna.recovery.expiryScanner"
  290. -->
  291. <property
  292. name="com.arjuna.ats.arjuna.recovery.expiryScannerTransactionStatusManager" value="com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner"/>
  293. <!--
  294. Interval, in hours, between running the expiry scanners.
  295. This can be quite long. The absolute value determines the interval -
  296. if the value is negative, the scan will NOT be run until after one
  297. interval has elapsed. If positive the first scan will be immediately
  298. after startup. Zero will prevent any scanning.
  299. Default = 12 = run immediately, then every 12 hours.
  300. -->
  301. <property
  302. name="com.arjuna.ats.arjuna.recovery.expiryScanInterval" value="12"/>
  303. <!--
  304. This is the interval, in hours, after which a process that cannot be contacted will be considered dead.
  305. It should be long enough to avoid accidentally removing valid entries due to short lived
  306. transient errors such as network downtime. Zero = Never removed. Default is 12.
  307. -->
  308. <property
  309. name="com.arjuna.ats.arjuna.recovery.transactionStatusManagerExpiryTime" value="12"/>
  310. <!--
  311. Use this to fix the port on which the TransactionStatusManager listens,
  312. The default behaviour is to use any free port.
  313. -->
  314. <property
  315. name="com.arjuna.ats.arjuna.recovery.transactionStatusManagerPort" value="0"/>
  316. <!--
  317. Use this to fix the address on which the TransactionStatusManager binds,
  318. The default behaviour is to use the loopback address (ie localhost).
  319. If running within an AS then the address the AS is bound to (jboss.bind.address) takes precedence
  320. -->
  321. <property
  322. name="com.arjuna.ats.arjuna.recovery.transactionStatusManagerAddress" value=""/>
  323. <!--
  324. For cases where the recovery manager is in process with the transaction manager and nothing else uses
  325. the ObjectStore, it is possible to disable the socket based recovery listener by setting this to NO.
  326. Caution: use of this property can allow multiple recovery processes to run on the same ObjectStore
  327. if you are not careful. That in turn can lead to incorrect transaction processing. Use with care.
  328. -->
  329. <property name="com.arjuna.ats.arjuna.recovery.recoveryListener" value="YES"/>
  330. </properties>
  331. <properties depends="jta" name="jdbc">
  332. <!--
  333. property name="com.arjuna.ats.jdbc.isolationLevel" value="TRANSACTION_SERIALIZABLE"/>
  334. -->
  335. </properties>
  336. </transaction-service>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement