Show Table of Contents
23.2.4. 编辑 Bean 池
Bean 池可以用管理控制台进行编辑。
过程 23.5. 用管理控制台编辑 Bean 池
- 登陆到管理控制台。第 3.4.2 节 “登录到管理控制台”
- 点击屏幕顶部的 标签页。展开 菜单并选择 。然后选择 标签页。
- 选择要编辑的 Bean 池。
- 点击 。
- 编辑要修改的内容,您只可以修改 Max Pool Size、Timeout 和 Timeout Unit。
- 点击完成。
过程 23.6. 用 CLI 编辑 Bean 池
- 登录 CLI 工具并连接到您的服务器。请参考 第 3.5.4 节 “用管理 CLI 连接受管服务器实例”。
- 对需要修改的每个属性使用
write-attribute操作和下列语法。/subsystem=ejb3/strict-max-bean-instance-pool=BEANPOOLNAME:write-attribute(name="ATTRIBUTE", value="VALUE")
- 用 Bean 池的名称替换 BEANPOOLNAME。
- 用要编辑的属性的名称替换 ATTRIBUTE。可以编辑的这些属性是
max-pool-size,timeout和timeout-unit. - 用所需的属性值替换 VALUE。
- 请用
read-resource操作来确认对 Bean 池的修改。/subsystem=ejb3/strict-max-bean-instance-pool=BEANPOOLNAME:read-resource
例 23.4. 用 CLI 设置 Bean 池的 Timeout 值
[standalone@localhost:9999 /] /subsystem=ejb3/strict-max-bean-instance-pool=HSBeanPool:write-attribute(name="timeout", value="1500")
{"outcome" => "success"}
[standalone@localhost:9999 /]
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.