Transactions 我们是否可以仅为Atomikos JTA properties中的某些属性设置值,并为其他属性获取JTA.properties中指定的默认值?

Transactions 我们是否可以仅为Atomikos JTA properties中的某些属性设置值,并为其他属性获取JTA.properties中指定的默认值?,transactions,jta,atomikos,Transactions,Jta,Atomikos,我想将com.atomikos.icatch.log_base_name属性的值设置为transaction log,将com.atomikos.icatch.log_base_dir属性的值设置为/log_dir。我只需要更改这两个属性,并获取jta.properties文件中所有其他属性的默认值。我可以通过在transactions.properties文件中指定上述两个属性并将其路径作为系统属性指定给com.atomikos.icatch.file来实现这一点吗?如果我没有在我的trans

我想将
com.atomikos.icatch.log_base_name
属性的值设置为
transaction log
,将
com.atomikos.icatch.log_base_dir
属性的值设置为
/log_dir
。我只需要更改这两个属性,并获取
jta.properties
文件中所有其他属性的默认值。我可以通过在
transactions.properties
文件中指定上述两个属性并将其路径作为系统属性指定给
com.atomikos.icatch.file
来实现这一点吗?如果我没有在我的
transactions.properties
文件中指定其他属性的默认值,那么是否可以使用
jta.properties
文件访问这些属性?

以下是它的工作原理:

  • 首先加载内置默认值
  • 已加载transactions.properties中的属性并覆盖1
  • jta.properties中的属性被加载并覆盖2
  • 自定义“文件”中的属性覆盖3
  • JVM属性(系统属性)覆盖4