Skip to content

docs: 补齐 Atomikos XA 的文档缺口(README type 修正 + 指南 + 示例 + Skill) - #826

Open
huayanYu wants to merge 4 commits into
devfrom
docs/atomikos-xa-story
Open

huayanYu wants to merge 4 commits into
devfrom
docs/atomikos-xa-story

Conversation

@huayanYu

@huayanYu huayanYu commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

背景

项目 Wiki 已彻底关闭(has_wiki=false),内容以文档站(doc.xiuceyun.cn)为唯一落点。此前文档站已把 10 页 Wiki FAQ 系列并入(dynamic-datasource-doc 的 e7af9f4),但Atomikos 一直没有任何页面,而事务选型指南里又列了它。本 PR 把剩下的部分补齐,并把主仓库里所有指向 Wiki 的链接换成文档站。

本 PR 改动(纯文档)

  1. 新增 skills/dynamic-datasource/references/atomikos-xa.md:Atomikos XA 集成指南(版本窗口、依赖、数据源配置、池参数表、Boot 4 手工装配 JTA、编程式 JTA 写法与 @Transactional 冲突原理、AtomikosTransactionFactory 配对、init.schema 不回滚的坑)。
  2. README 中英文两份的 Atomikos 片段补上 type: com.atomikos.jdbc.AtomikosDataSourceBean:原片段缺这一项,Hikari 创建器优先级更高会接管该数据源,把 XA 数据源类当 java.sql.Driver 加载,照抄必然启动失败。
  3. 消除全部 Wiki 链接(共 8 个文件):README / README_zh_CN / SUPPORT.md / skills 四个 reference 文件,一律改为文档站对应页面(/docs/faq、/docs/tx/basics、/docs/tx/local-tx、/docs/advanced/*、/docs/pool),文字标签也从「Wiki」改为「文档站」。
  4. Skill 路由表新增 Atomikos XA 入口;transactions-and-threads.md 增加 Atomikos XA 小节并修正后续章节编号;「官方资料」里去掉已关闭的 Wiki。

配套 PR

  • 文档站:baomidou/dynamic-datasource-doc#1 —— 新增 docs/tx/atomikos.md(中英双语)、挂到侧边栏,并修正 docs/pool/index.md 里 creator 优先级的表述(真实注册顺序是 Druid > HikariCP > BeeCP > DBCP2 > Atomikos > C3P0 > Oracle UCP > Basic,JNDI 仅在配置了 jndi-name 时匹配)。
  • 示例仓库:dynamic-datasource-samples#62 —— 新增 spring-boot-4/tx-atomikos-sample(Boot 4.1.1 + Atomikos 6.0.1 jakarta + 双 H2 XA,3/3 测试本地通过)。

纯文档改动,无代码变更。

… skill)

The Atomikos XA quickstart snippet in both READMEs was missing
type: com.atomikos.jdbc.AtomikosDataSourceBean. Without it the Hikari
creator (higher priority in the chain) claims the datasource and fails
loading the XA class as a java.sql.Driver at startup.

- README / README_zh_CN: add the missing type with an inline why, and link
  the new wiki guide and tx-atomikos-sample.
- skills/.../transactions-and-threads.md: new Atomikos XA section
  summarising the dependency window, Boot 4 JTA wiring, the
  @Transactional-vs-@DS pitfall and the init.schema pitfall.

Companion changes: wiki page Atomikos-XA-Integration (zh/en) and
dynamic-datasource-samples PR #62 (spring-boot-4/tx-atomikos-sample).
@github-actions github-actions Bot added the documentation Docs and wiki label Oct 20, 2026
The project wiki is closed (has_wiki=false), so the guide published there is
not reachable. Its content now lives in the repository as a skill reference
(skills/dynamic-datasource/references/atomikos-xa.md), with the READMEs and
the skill routing table pointing at it.

Also drops the wiki from the skill's official-resources list, since the wiki
is no longer published.
The project wiki is closed and will not be used again, so all references to
it are now dead links. Every one of them has a counterpart on the
documentation site (doc.xiuceyun.cn), which already hosts the FAQ series
distilled from the wiki:

- README / README_zh_CN: the FAQ picks now point at doc.xiuceyun.cn/docs/faq
  and the doc pages they mirror; the "migrating into the wiki" wording is
  dropped.
- SUPPORT.md: points at the documentation site and its FAQ index.
- skills/.../references/*: the per-topic wiki links now resolve to the
  matching doc pages (tx/local-tx, tx/basics, faq/*, advanced/*, pool).

The Atomikos guide stays in the repository as
skills/dynamic-datasource/references/atomikos-xa.md and is also published
on the documentation site.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Docs and wiki

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant