此内容没有您所选择的语言版本。

Chapter 8. Using JBossJTA with JBoss Enterprise Application Platform


8.1. Service Configuration

Most of the configuration for The JBoss Transaction Service is done using the XML files stored in the etc directory. Several extra attributes can be configured when it is run as a JBOSS service, however.
TransactionTimeout
The default transaction timeout to be used for new transactions. An integer value, expressed in seconds.
StatisticsEnabled
Determines whether or not the transaction service should gather statistical information. Viable using the PerformanceStatistics MBean. A Boolean value, whose default is NO.
PropagateFullContext
Determines whether a full transactional context is propagated by context importer/exporter. If set to false, only the current transaction context is propagated. If set to true, the full transaction context is propagated, including any parent transactions.
These attributes are specified as MBean attributes in the jboss-service.xml file located in the server/all/conf directory, See Example 8.1, “Example jboss-services.xml for an example.

Example 8.1. Example jboss-services.xml

<mbean code="com.arjuna.ats.jbossatx.jts.TransactionManagerService" name="jboss:service=TransactionManager">
  
  <attribute name="TransactionTimeout">300</attribute>
  <attribute name="StatisticsEnabled>true</attribute>>
  
</mbean>

Copy to Clipboard Toggle word wrap
The transaction service can also be configured via the standard JBoss Transaction Service property files. These are located in the JBoss Transaction Service install location under the etc directory. You can edit these files manually or through JMX. Each property file is exposed using an object whose name is derived from a combination of com.arjuna.ts.properties and the name of the module containing the attribute to be configured An example is com.arjuna.ts.properties:module=arjuna.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat