Show Table of Contents
23.9.3. 启用 EJB 2.x 的容器管理持久化
容器管理持久化(Container-Managed Persistence,CMP)是由
org.jboss.as.cmp 扩展处理的。受管域和独立服务器的 full 配置(standalone-full.xml)里 CMP 默认是启用的。
要在不同的配置里启用 CMP,请在服务器配置文件的启用扩展列表里添加
org.jboss.as.cmp 模块。
<extensions>
<extension module="org.jboss.as.cmp"/>
</extensions>
添加扩展后,您必须在配置集的 XML 文件里的 <profile> 元素下添加下列元素。
<subsystem xmlns="urn:jboss:domain:cmp:1.1"/>
要在服务器配置里禁用 CMP,请从
org.jboss.as.cmp 模块里删除扩展条目。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.